You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Srikanth Hugar <sr...@gmail.com> on 2016/05/02 18:39:26 UTC

Does bundle uninstall release the memory?

Hi All,

  I have some memory leaks in one of my bundles deployed in karaf (with
jetty). Wanted to know whether uninstall of bundle releases the memory?
I tried to uninstall bundle from webconsole, but memory not released.

Is there anyway to release the memory if we uninstall the bundle?

Best Regards,
Srikanth.

Re: Does bundle uninstall release the memory?

Posted by Achim Nierbeck <bc...@googlemail.com>.
well, it's a jvm therefore it can't release leaked memory. So do you update
web-bundles often? Cause I think we had a leak issue with the web:list
command, as it holds reference to the web-bundle, but this should be fixed
with the latest versions.

regards, Achim


2016-05-02 19:11 GMT+02:00 Srikanth Hugar <sr...@gmail.com>:

> It's permgen space issue. It seems to be our bundle issue. But what I
> wanted to know is whether if we uninstall bundle will it release the memory
> which is leaked?
> On May 2, 2016 10:28 PM, "Jean-Baptiste Onofré" <jb...@nanthrax.net> wrote:
>
>> Hi,
>>
>> on which space is the memory leak ? Perm or Heap ?
>>
>> I remember to have seen memory leak on the perm when doing lot of
>> bundle:update/bundle:restart. Is it your case ?
>>
>> Regards
>> JB
>>
>> On 05/02/2016 06:39 PM, Srikanth Hugar wrote:
>>
>>> Hi All,
>>>
>>>    I have some memory leaks in one of my bundles deployed in karaf (with
>>> jetty). Wanted to know whether uninstall of bundle releases the memory?
>>> I tried to uninstall bundle from webconsole, but memory not released.
>>>
>>> Is there anyway to release the memory if we uninstall the bundle?
>>>
>>> Best Regards,
>>> Srikanth.
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Does bundle uninstall release the memory?

Posted by Srikanth Hugar <sr...@gmail.com>.
It's permgen space issue. It seems to be our bundle issue. But what I
wanted to know is whether if we uninstall bundle will it release the memory
which is leaked?
On May 2, 2016 10:28 PM, "Jean-Baptiste Onofré" <jb...@nanthrax.net> wrote:

> Hi,
>
> on which space is the memory leak ? Perm or Heap ?
>
> I remember to have seen memory leak on the perm when doing lot of
> bundle:update/bundle:restart. Is it your case ?
>
> Regards
> JB
>
> On 05/02/2016 06:39 PM, Srikanth Hugar wrote:
>
>> Hi All,
>>
>>    I have some memory leaks in one of my bundles deployed in karaf (with
>> jetty). Wanted to know whether uninstall of bundle releases the memory?
>> I tried to uninstall bundle from webconsole, but memory not released.
>>
>> Is there anyway to release the memory if we uninstall the bundle?
>>
>> Best Regards,
>> Srikanth.
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Does bundle uninstall release the memory?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

on which space is the memory leak ? Perm or Heap ?

I remember to have seen memory leak on the perm when doing lot of 
bundle:update/bundle:restart. Is it your case ?

Regards
JB

On 05/02/2016 06:39 PM, Srikanth Hugar wrote:
> Hi All,
>
>    I have some memory leaks in one of my bundles deployed in karaf (with
> jetty). Wanted to know whether uninstall of bundle releases the memory?
> I tried to uninstall bundle from webconsole, but memory not released.
>
> Is there anyway to release the memory if we uninstall the bundle?
>
> Best Regards,
> Srikanth.

-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Does bundle uninstall release the memory?

Posted by Tim Jones <ti...@mccarthy.co.nz>.
Hi Srikanth,

in my experience it will depend on the bundle. Although we use SpringDM and
found permgen issues with CGLIB, for the same reason any bundle could be
susceptable to permgen leaks. Some more details here -
http://karaf.922171.n3.nabble.com/A-few-observations-about-permgen-class-loader-leaks-td4028707.html.
Tracking down what is causing the leak isn't usually too hard, follow
something like
https://cdivilly.wordpress.com/2012/04/23/permgen-memory-leak/, but fixing
it may be more difficult if it is due to a third party library.

Tim








--
View this message in context: http://karaf.922171.n3.nabble.com/Does-bundle-uninstall-release-the-memory-tp4046447p4046457.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Does bundle uninstall release the memory?

Posted by Srikanth Hugar <sr...@gmail.com>.
Karaf 3.0.0, and we have total of 291 bundles.

Could you please let me know how it depends on the bundle?

Thank you.
On May 2, 2016 10:14 PM, "Achim Nierbeck" <bc...@googlemail.com> wrote:

> Hi,
>
> depends on the bundle, might be that there is a memory leak, which version
> of Karaf, how many bundles etc...
>
> regards, Achim
>
>
> 2016-05-02 18:39 GMT+02:00 Srikanth Hugar <sr...@gmail.com>:
>
>> Hi All,
>>
>>   I have some memory leaks in one of my bundles deployed in karaf (with
>> jetty). Wanted to know whether uninstall of bundle releases the memory?
>> I tried to uninstall bundle from webconsole, but memory not released.
>>
>> Is there anyway to release the memory if we uninstall the bundle?
>>
>> Best Regards,
>> Srikanth.
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>
>

Re: Does bundle uninstall release the memory?

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

depends on the bundle, might be that there is a memory leak, which version
of Karaf, how many bundles etc...

regards, Achim


2016-05-02 18:39 GMT+02:00 Srikanth Hugar <sr...@gmail.com>:

> Hi All,
>
>   I have some memory leaks in one of my bundles deployed in karaf (with
> jetty). Wanted to know whether uninstall of bundle releases the memory?
> I tried to uninstall bundle from webconsole, but memory not released.
>
> Is there anyway to release the memory if we uninstall the bundle?
>
> Best Regards,
> Srikanth.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master