<div dir="ltr">Correct. The Java garbage collections use system threads to navigate mark the objects in the heap. If you can not finish the sweep fast enough you get a pause.<br><br>I never set a JVM higher than 12 GB heap. <div><br></div><div>If you really need large off heap structures you can use one of several off heap libraries <a href="http://www.mapdb.org/">http://www.mapdb.org/</a>.</div><div><br></div><div>Anecdotal. Keep in mind I have tested this and you can create 'a lot more objects' given the same RAM than many other popular non java languages. :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 27, 2016 at 4:13 PM, Pete Wright <span dir="ltr"><<a href="mailto:pete@nomadlogic.org" target="_blank">pete@nomadlogic.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 04/26/2016 03:56 AM, Brian Coca wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As many a Java dev has told me: "the only problem is that you did not<br>
install enough RAM, just add it, it's cheap!"<br>
<br>
<br>
</blockquote>
<br>
and therein is the issue - in practice i've found that by adding more memory to a JVM heap will tend to worsen GC pauses, especially for latency sensitive operations.  then you get to do all sorts of fun stuff like storing cached objects outside of the JVM or lord knows what.<br>
<br>
i spent about 3 months trying to help a team tune their java app when they noticed it would periodically show latencies of several seconds. they kept adding more memory to the heap, which made things worse.  once we turned on debugging metrics for GC it became painfully apparent that due to the huge heap that they had allocated GC was taking ages to complete and stopping to world in the process.  good times :)<span class="HOEnZb"><font color="#888888"><br>
<br>
-pete<br>
<br>
-- <br>
Pete Wright<br>
<a href="mailto:pete@nomadlogic.org" target="_blank">pete@nomadlogic.org</a><br>
<br>
_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@lists.nycbug.org" target="_blank">talk@lists.nycbug.org</a><br>
<a href="http://lists.nycbug.org/mailman/listinfo/talk" rel="noreferrer" target="_blank">http://lists.nycbug.org/mailman/listinfo/talk</a><br>
</font></span></blockquote></div><br></div>