Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

High CPU usage with classes loaded skyrocketing  RSS feed

 
gigi sheh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

We have a webservices application that uses Java 1.6.0_43, Spring 3.2.3, CXF 2.6.9 and deployed to Jboss 5.0.1 GA in a LINUX x86_64 centos box. It essentially uses apache httpclient (4.2.2) to call internal services and returns the results back to customers. The application has been running fine for a year or so until early this month when all of sudden, it loaded about 300K classes in a very short time during our regression tests and saturated the CPU usage ever since. Hence the application is no longer responding.

I have been trying to troubleshoot the problem for a while. Tried visualvm, dynatrace. thread dumps. heap dumps... None of them is very effective in capturing what are the classes that are loaded so many times and what path triggered that. Can someone please kindly share some hints/thoughts? Any helps would be deeply appreciated

Gigi

 
Jayesh A Lalwani
Rancher
Posts: 2762
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heap dumps can tell you which classes are loaded. In the dominator tree look for objects of type ClassLoader. THis will list all the classloaders. Open up the objects and you should get an idea of which classes are loading


Otherwise, thread dump should tell you what exactly the threads are doing when the classes start exploding. The bug is in the code of one of those threads
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!