Hi, The additional reason why you can see periodic (hourly) full GCs is RMI distributed GC mechanism. Please take a look at *sun.rmi.dgc.client.gcInterval, **sun.rmi.dgc.server.gcInterval* parameters in https://docs.oracle.com/javase/8/docs/technotes/guides/rmi/sunrmiproperties.html
If you are worrying about memory allocations itself, not about the periodic GCs - there are some background activities in Karaf, like File Admin directory watcher, which allocate small amount of memory continuously and it is normal behavior. Regards Dmitry Konstantinov 2015-07-17 12:38 GMT+03:00 Jean-Baptiste Onofré <[email protected]>: > The default are in bin/karaf, and you can override bin/setenv. > > Regards > JB > > On 07/17/2015 11:28 AM, Srikanth Hugar wrote: > >> But i could not find any GC argument in karaf scripts. >> I was expecting /*XX:+USeParNewGC* argument for JVM. Please correct me >> if i am wrong./ >> >> Srikanth Hugar >> www.gharki.com <http://www.gharki.com> >> >> >> >> On Fri, Jul 17, 2015 at 2:40 PM, Jean-Baptiste Onofré <[email protected] >> <mailto:[email protected]>> wrote: >> >> No, CMS is the default. >> >> On 07/17/2015 10:59 AM, Srikanth Hugar wrote: >> >> ok. apache karaf 3.0.0 does not use G1 by default? >> >> Srikanth Hugar >> www.gharki.com <http://www.gharki.com> <http://www.gharki.com> >> >> >> >> On Fri, Jul 17, 2015 at 2:24 PM, Jean-Baptiste Onofré >> <[email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>>> wrote: >> >> Hi, >> >> you can change your JVM settings to change the GC behavior >> (you can >> use the G1 or, if you want to still use the CMS, you can >> tune the >> NewRatio, etc). >> >> Regards >> JB >> >> On 07/17/2015 10:46 AM, Srikanth Hugar wrote: >> >> Hello, >> >> I have a application running with *apache karaf >> 3.0.0* (with >> *jetty >> *container). >> I wanted to run the some performance tests. So started >> to check the >> *memory *and *CPU without *running any tests. >> >> While profiling noticed that, memory usage goes up and >> comes >> down every >> hour. >> >> Basically *GC pauses* happening every *hour*. >> >> Is it a default behavior? Can we change? If yes, please >> let me >> know how >> to change. >> >> *Please find the attached image for your reference.* >> >> Thank you. >> >> >> -- >> Jean-Baptiste Onofré >> [email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>> >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> >> >> >> -- >> Jean-Baptiste Onofré >> [email protected] <mailto:[email protected]> >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> >> >> > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com > -- Dmitry Konstantinov
