Path: csiph.com!news.mixmin.net!news.albasani.net!news.gnuher.de!news.enyo.de!.POSTED!not-for-mail From: Florian Weimer Newsgroups: comp.lang.java.programmer Subject: Re: gc is freeing and claiming memory Date: Sat, 13 Aug 2016 16:35:20 +0200 Lines: 13 Message-ID: <8737m8spnb.fsf@mid.deneb.enyo.de> References: <87oa4yks54.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain X-Trace: news.enyo.de 1471098920 1125 192.168.18.20 (13 Aug 2016 14:35:20 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:4bUJkN7tZpIcAV35gyrtd19cDPM= Xref: csiph.com comp.lang.java.programmer:35306 * Cecil Westerhof: > So while on the one hand there is 9 MB of memory freed, but at the > same time there is another 4 MB reserved. (I have seen a bigger > difference, there was on the one hand 4 MB freed and at the same time > 32 MB extra reserved. But I did not save that.) > > What is happening here? Maybe something related to GC ergonomics. The JVM might try to resize the heap to avoid too frequent collections. For details, you need to switch on GC debugging messages and look at GC statistics instead overall system statistics.