title: CPU usage of Jboss JVM goes upto 99% and stays there
body: <p>I am doing load testing on my application using jmeter and I have a situation where the cpu usage by the applications jvm goes to 99% and it stays there. Application still work, I am able to login and do some activity. But, it’s understandably slower.</p>
  
  <p>Details of environment:</p>
  
  <p>Server: AMD Optrom, 2.20 Ghz, 8 Core, 64bit, 24 GB RAM. Windows Server 2008 R2 Standard</p>
  
  <p>Application server: jboss-4.0.4.GA</p>
  
  <p>JAVA: jdk1.6.0_25, Java HotSpot(TM) 64-Bit Server VM</p>
  
  <p>JVM settings:
  -Xms1G -Xmx10G -XX:MaxNewSize=3G -XX:MaxPermSize=12G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseCompressedOops -Dsun.rmi.dgc.client.gcInterval=1800000 -Dsun.rmi.dgc.server.gcInterval=1800000</p>
  
  <p>Database: MySql 5.6 (in a different machine)</p>
  
  <p>Jmeter: 2.13</p>
  
  <p>My scenario is that, I make 20 users of my application to log into it and perform normal activity that should not be bringing huge load. Some, minutes into the process, JVM of Jboss goes up and it never comes back. CPU usage will remain like that till JVM is killed. </p>
  
  <p>To help better understand, here are few screen shots.</p>
  
  <p><img src="https://i.stack.imgur.com/bU4XO.jpg" alt="Visual GC"></p>
  
  <p><img src="https://i.stack.imgur.com/pwocd.jpg" alt="visual VM"></p>
  
  <p>I found few post which had cup @ 100%, but nothing there was same as my situation and could not find a solution.
  Any suggestion on what’s to be done will be great. </p>
  
  <p>Regards,</p>
  
  <p>Sreekanth.</p>