<!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;">
    Re: Cpu 100% and GC is running
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/arumilli">sreenivas arumilli</a> in <i>Performance Tuning</i> - <a href="https://community.jboss.org/message/647363#647363">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 changed the JVM setting and able tp see the perfomance of my system was much improved. But still I am having 100% cpu usage with GC.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Our JVM permaters are :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>-Dprogram.name=run.sh</p><p>-Dprogram.name=run.sh</p><p>-Xms3872m</p><p>-Xmx3872m</p><p>-Dsun.rmi.dgc.client.gcInterval=3600000</p><p>-Dsun.rmi.dgc.server.gcInterval=3600000</p><p>-XX:NewSize=1278m</p><p>-XX:MaxNewSize=1278m</p><p>-Djava.net.preferIPv4Stack=true</p><p>-XX:MaxPermSize=256m</p><p>-XX:+UseConcMarkSweepGC</p><p>-XX:+CMSClassUnloadingEnabled</p><p>-Djavax.net.ssl.trustStore=/opt/properties/.keystore</p><p>-Djavax.net.ssl.trustStorePassword=changeit</p><p>-Dcom.sun.management.jmxremote.port=8888</p><p>-Djava.rmi.server.hostname=192.168.100.39</p><p>-Dcom.sun.management.jmxremote.ssl=false</p><p>-Dcom.sun.management.jmxremote</p><p>-XX:+PrintGCDetails</p><p>-Xloggc:/opt/gc.log</p><p>-XX:+UseTLAB</p><p>-XX:+UseParNewGC</p><p>-XX:ParallelGCThreads=4</p><p>-Xss256k</p><p>-Djava.net.preferIPv4Stack=true</p><p>-Djava.endorsed.dirs=/opt/jboss-4.2.3.GA//lib/endorsed</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We observered GC logs and found the below lines are causing CPU 100% usage.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>25074.643: [GC [1 CMS-initial-mark: 1349040K(2656256K)] 1350761K(3963712K), 0.0072300 secs]</p><p>25074.650: [CMS-concurrent-mark-start]</p><p>25075.310: [CMS-concurrent-mark: 0.659/0.659 secs]</p><p>25075.310: [CMS-concurrent-preclean-start]</p><p>25075.320: [CMS-concurrent-preclean: 0.010/0.010 secs]</p><p>25075.320: [CMS-concurrent-abortable-preclean-start]</p><p> CMS: abort preclean due to time 25076.377: [CMS-concurrent-abortable-preclean: 0.175/1.057 secs]</p><p>25076.391: [GC[YG occupancy: 63977 K (1307456 K)]25076.391: [Rescan (parallel) , 0.1988790 secs]25076.589: [weak refs processing, 0.3584420 secs] [1 CMS-remark: 1349040K(2656256K)] 1413018K(3963712K), 0.5868910 secs]</p><p>25076.978: [CMS-concurrent-sweep-start]</p><p>25077.978: [CMS-concurrent-sweep: 1.000/1.000 secs]</p><p>25077.978: [CMS-concurrent-reset-start]</p><p>25077.986: [CMS-concurrent-reset: 0.008/0.008 secs]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Can you suggest why it getting aborted and what we need to do to prevent this.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Arumilli</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/647363#647363">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>