Hi Dan, well you have a shell command for restart its dev:restart. But I think you can also do a restart with the webconsole. everything else might be to just create a bundle that monitors the memory and does the same as the dev:restart if that is what you need :)
regards, Achim 2011/12/15 Dan Tran <[email protected]> > Looks like the permgen issue is here for a long time. How about > adding ability for karaf to restart itself ( Hudson, and eclipse can > do this i think ). May be via webconsole, or JMX > > Eager to hear how we could implement such feature for karaf. > > -D > > ---------- Forwarded message ---------- > From: Dan Tran <[email protected]> > Date: Thu, Dec 15, 2011 at 12:23 AM > Subject: Re: Infamous permgen leak > To: [email protected] > > > It is about feature to be loaded in and out of karaf dynamically. So > I guess is a known issue to 'java', karaf is not an exception :( > > Wonder if ACE can solve this issue > > > -D > > On Thu, Dec 15, 2011 at 12:15 AM, Jean-Baptiste Onofré <[email protected]> > wrote: > > Hi Dan, > > > > just to understand your issues: > > - if you talk about the feature service itself, I'm agree that it > shouldn't > > consume perm > > - but the loaded classes (loaded by the feature service) consumes perm, > and > > it's a normal behavior (it's exactly the same with on Tomcat with > > hot-deployment for instance) > > > > > > Regards > > JB > > > > On 12/15/2011 08:36 AM, Dan Tran wrote: > >> > >> Hello Karaf Team > >> > >> Each time I reinstall/update a feature at runtime, my karaf loses some > >> permgen. Amount depending on number to classes I have. Is there any > >> one able to address this issue? > >> > >> Setting JVM to -XX:+CMSPermGenSweepingEnabled > >> -XX:+CMSClassUnloadingEnabled doesnot help. > >> > >> -Dan > > > > > > -- > > Jean-Baptiste Onofré > > [email protected] > > http://blog.nanthrax.net > > Talend - http://www.talend.com > -- 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/>
