<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Need advice on GC Tuning
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/jimyliu">Jimy Liu</a> in <i>Performance Tuning</i> - <a href="https://community.jboss.org/message/735997#735997">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am running a performance test on our application.&#160; After the test was run for 1 hour, I see long GC pause which caused response time spikes. Need some help or suggestion on how to reduce the GC pause.</p><p>Here are the GC log :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T22:52:56.161-0700: 6177.078: [GC 6177.078: [ParNew: 17695592K-&gt;1339126K(18874368K), 0.3434470 secs] 43749198K-&gt;27457582K(48234496K), 0.3436340 secs]</span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;"> [Times: user=5.62 sys=0.02, real=0.34 secs] </span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T22:53:05.970-0700: 6186.887: [GC 6186.887: [ParNew: 18115900K-&gt;1689020K(18874368K), 0.3852740 secs] 44234355K-&gt;27966612K(48234496K), 0.3854630 secs]</span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;"> [Times: user=5.47 sys=0.06, real=0.39 secs] </span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt; color: #ff0000;">2012-05-15T22:53:15.642-0700: 6196.558: [GC 6196.558: [ParNew (promotion failed): 18466236K-&gt;17822574K(18874368K), 1.5893900 secs]6198.147: [CMS</span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt; color: #ff0000;">: 26715373K-&gt;25179454K(29360128K), 56.2166540 secs] 44743828K-&gt;25179454K(48234496K), [CMS Perm : 41353K-&gt;41229K(69084K)], 57.8062970 secs]</span></p><p class="p2" style="padding-left: 30px;"><span style="font-size: 8pt; color: #ff0000;"> [Times: user=62.74 sys=0.24, real=57.80 secs] </span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T22:54:28.938-0700: 6269.855: [GC 6269.855: [ParNew: 16774330K-&gt;778090K(18874368K), 0.0507380 secs] 41953785K-&gt;25957545K(48234496K), 0.0509320 secs]</span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;"> [Times: user=0.99 sys=0.00, real=0.05 secs] </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:04.707-0700: 9365.623: [GC 9365.623: [ParNew: 17040515K-&gt;359475K(18874368K), 0.0740660 secs] 46306893K-&gt;29625853K(48234496K), 0.0741870 secs] [Times: user=1.46 sys=0.00, real=0.08 secs] </span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:05.067-0700: 9365.984: [CMS-concurrent-sweep: 13.441/13.605 secs] [Times: user=142.94 sys=1.38, real=13.60 secs] </span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:05.067-0700: 9365.984: [CMS-concurrent-reset-start]</span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:05.153-0700: 9366.069: [CMS-concurrent-reset: 0.085/0.085 secs] [Times: user=0.73 sys=0.01, real=0.09 secs] </span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:05.432-0700: 9366.348: [GC [1 CMS-initial-mark: 29264165K(29360128K)] 30880704K(48234496K), 0.2924050 secs] [Times: user=0.29 sys=0.00, real=0.29 secs] </span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:05.724-0700: 9366.641: [CMS-concurrent-mark-start]</span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:11.304-0700: 9372.220: [GC 9372.220: [ParNew: 17135902K-&gt;301516K(18874368K), 0.1034410 secs] 46400067K-&gt;29630497K(48234496K), 0.1035600 secs]</span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;"> [Times: user=1.74 sys=0.00, real=0.10 secs] </span></p><p class="p1" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:18.652-0700: 9379.568: [Full GC 9379.568: [CMS</span></p><p class="p2" style="padding-left: 30px;"><span style="font-size: 8pt;">2012-05-15T23:46:23.919-0700: 9384.835: [CMS-concurrent-mark: 17.954/18.194 secs] [Times: user=206.41 sys=4.01, real=18.19 secs] </span></p><p class="p2" style="padding-left: 30px;"><span style="font-size: 8pt;"> (<span style="color: #ff0000;">concurrent mode failure): 29328981K-&gt;29057103K(29360128K), 78.5226800 secs] 46405706K-&gt;29057103K(48234496K), [CMS Perm : 41177K-&gt;41173K(69084K)], 78.5228130 secs] [Times: user=91.91 sys=1.77, real=78.51 secs] </span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The server has 24 cores on Linux 64bit OS. JVM version: 1.6.0_24-b07. Here is the JVM options I used:</p><p class="p1" style="padding-left: 30px;"> -XX:+DisableExplicitGC&#160; -server -Xms48G -Xmx48G -XX:MaxPermSize=728m -Xss128k -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewSize=20G -XX:ParallelGCThreads=20 -XX:+PrintGCDateStamps -XX:+PrintGCDetails </p><p class="p1" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="p1" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="p1">Thanks in advance for any suggestion. </p><p class="p1" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="p1">Jimy</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/735997#735997">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Performance Tuning at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>