<div dir="ltr">Ah, didn't think of that. I'll take a couple of heap dumps to try and confirm that.<div><br></div><div>Thanks Kirk<br><br>On Friday, March 31, 2017, Kirk Pepperdine <<a href="mailto:kirk@kodewerk.com" target="_blank">kirk@kodewerk.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Most likely the second GC is reclaiming Reference types identified during the first collection. Finalization is a likely candidate as it take one collection to get it into the reference queue, the queue is then process and the finalized object can finally be reclaimed.<br>
<br>
Kind regards,<br>
Kirk Pepperdine<br>
<br>
> On Mar 31, 2017, at 8:53 PM, David Sinclair <<a>dsinclair@chariotsolutions.<wbr>com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I was hoping for an explanation of why calling Runtime.gc() twice shows a significant improvement in memory reclaimed as opposed to calling it once.<br>
><br>
> Thanks<br>
><br>
> dave<br>
<br>
</blockquote>
</div></div>