<div>I&#39;ve attached an old gclog where it has similar behavior on the heap.&nbsp; But the problem with that is it takes quite a long time, like 20 - 70 seconds.&nbsp; The server basically went down with customers complaining during that time, so we had to try CMS, but that doesn&#39;t work out well either.</div>

<div>&nbsp;</div>
<div>We are having Sun Portal Server 6.2 on those web servers.&nbsp; Do you know is it a normal behavior for Portal Server with about&nbsp;400-500 users per instance?</div>
<div>Thanks,</div>
<div>TK<br><br></div>
<div class="gmail_quote">On Thu, Mar 27, 2008 at 5:10 PM, Jon Masamitsu &lt;<a href="mailto:Jon.Masamitsu@sun.com">Jon.Masamitsu@sun.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Late in this log I see<br><br>162417.510: [GC 162417.510: [ParNew: 370176K-&gt;11520K(381696K), 0.4232456<br>
secs] 3055096K-&gt;2715938K(3134208K), 0.4240171 secs]<br><br>At that point the heap is about 85% full (2715938K/3134208K). &nbsp;The<br>tenured generation is almost completely full.<br><br>Do you have similar logs when using the default GC? &nbsp;We could use them<br>
to verify the amount of live data.<br>
<div class="Ih2E3d"><br><br>T.K wrote:<br>&gt;<br>&gt; Hi Jon,<br>&gt;<br>&gt; Here&#39;s the attached gclog. &nbsp;It starts out fine when we put in the change<br>&gt; in the evening. &nbsp;Eventually, the next morning (around 60000 seconds on<br>
&gt; gc time) when the load starting to get in, CMS starts to run<br>&gt; consectively. &nbsp;The first CMS fails occur when we bump up the users to<br>&gt; 700+, and almost kill the server. &nbsp;Ever since then, I don&#39;t see the CMS<br>
&gt; ever stops, even when the load goes down to 50 users.<br>&gt;<br>&gt; I cut off the logs in between into 3 portion so that I can attach it. &nbsp;:D<br>&gt;<br>&gt;<br>&gt; Thanks,<br>&gt; TK<br>&gt;<br>&gt;<br>&gt; On 3/27/08, *Jon Masamitsu* &lt;<a href="mailto:Jon.Masamitsu@sun.com">Jon.Masamitsu@sun.com</a><br>
</div>
<div>
<div></div>
<div class="Wj3C7c">&gt; &lt;mailto:<a href="mailto:Jon.Masamitsu@sun.com">Jon.Masamitsu@sun.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt; &nbsp; &nbsp; Using CMS sometimes needs some tuning (especially<br>&gt; &nbsp; &nbsp; with the 1.4.2 jdk). &nbsp;Do you have any gc logs<br>
&gt; &nbsp; &nbsp; (-XX:+PrintGCDetails) so we can see what&#39;s happening?<br>&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; T.K wrote:<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Hi All,<br>&gt; &nbsp; &nbsp; &nbsp;&gt; We got 5 Sun Web Servers running on Java 1.4.2, and used to use the<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; default GC for Tenured space. The problem with that is that it takes<br>&gt; &nbsp; &nbsp; &nbsp;&gt; 60-80 seconds everytime the GC happens, and the latency on the<br>&gt; &nbsp; &nbsp; site goes<br>&gt; &nbsp; &nbsp; &nbsp;&gt; crazy. So we decided to change it to use the Concurrent Mark Sweep<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; Collector on one server to test it out. Here&#39;s the setting:<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Xms3G -Xmx3G<br>&gt; &nbsp; &nbsp; -XX:NewSize=384M<br>&gt; &nbsp; &nbsp; &nbsp;&gt; -XX:MaxNewSize=384M -XX:PermSize=64M -XX:MaxPermSize=64M<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; -XX:CMSInitiatingOccupancyFraction=60<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; With that setting, the server runs great. But eventually, when the<br>&gt; &nbsp; &nbsp; &nbsp;&gt; server reach a medium load (around 100-200 users), the tenured<br>
&gt; &nbsp; &nbsp; space is<br>&gt; &nbsp; &nbsp; &nbsp;&gt; always around half full, and the CMS collector starts to run<br>&gt; &nbsp; &nbsp; &nbsp;&gt; continuously one after another. It doesn&#39;t hurt the application<br>&gt; &nbsp; &nbsp; for now,<br>&gt; &nbsp; &nbsp; &nbsp;&gt; but it&#39;s taking 25% of processing time (we got 4 cpu, so one web<br>
&gt; &nbsp; &nbsp; server<br>&gt; &nbsp; &nbsp; &nbsp;&gt; always keep 1 cpu power). I don&#39;t see that much cpu utilization<br>&gt; &nbsp; &nbsp; on other<br>&gt; &nbsp; &nbsp; &nbsp;&gt; web server that don&#39;t have CMS, and they have more users than the one<br>&gt; &nbsp; &nbsp; &nbsp;&gt; with CMS. If we got CMS on all 5 web servers, I&#39;m wondering if<br>
&gt; &nbsp; &nbsp; that will<br>&gt; &nbsp; &nbsp; &nbsp;&gt; crash the server or not. &nbsp;What should I do to decrease the processor<br>&gt; &nbsp; &nbsp; &nbsp;&gt; utilization caused by GC?<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Also, I&#39;m thinking to use i-CMS on the JVM, and maybe that might slow<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; down the CMS and reduce the amount of CPU utilization by CMS. Any<br>&gt; &nbsp; &nbsp; thought?<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; Thanks,<br>&gt; &nbsp; &nbsp; &nbsp;&gt; TK<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; ------------------------------------------------------------------------<br>&gt; &nbsp; &nbsp; &nbsp;&gt;<br>&gt; &nbsp; &nbsp; &nbsp;&gt; _______________________________________________<br>&gt; &nbsp; &nbsp; &nbsp;&gt; hotspot-gc-use mailing list<br>&gt; &nbsp; &nbsp; &nbsp;&gt; <a href="mailto:hotspot-gc-use@openjdk.java.net">hotspot-gc-use@openjdk.java.net</a><br>
</div></div>&gt; &nbsp; &nbsp; &lt;mailto:<a href="mailto:hotspot-gc-use@openjdk.java.net">hotspot-gc-use@openjdk.java.net</a>&gt;<br>
<div>
<div></div>
<div class="Wj3C7c">&gt; &nbsp; &nbsp; &nbsp;&gt; <a href="http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use" target="_blank">http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use</a><br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>
&gt;<br>&gt; _______________________________________________<br>&gt; hotspot-gc-use mailing list<br>&gt; <a href="mailto:hotspot-gc-use@openjdk.java.net">hotspot-gc-use@openjdk.java.net</a><br>&gt; <a href="http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use" target="_blank">http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use</a><br>
</div></div></blockquote></div><br>