• Post Reply Bookmark Topic Watch Topic
  • New Topic

100% CPU  RSS feed

 
Raj Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Sometimes, our server goes amuck after a while (after starting 1500 threads and 200 threads running), the spike ranges from 50-90%. I think there is some looping going on in the program. We have lot of logging but I do not see anything obvious as the culprit.

As it happens in the production environment, I cannot use hprof. I tried to analyze the problem using jconsole but cannot find the culprit as there are so many of them listed and it does not show the time.

Is there a utility whcih I can attach to process at runtime and know the culprit.

Thanks,
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe JProbe? Though I am not sure if it is possible to attach this tool to already running program.
 
Arjun K
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raju,

Netbeans IDE ships an on fly attacher JFUILD which helps to attach to a running java application. The running java application doesn't need to be enabled any options on the startup as you did for hprof (-Xrun:hprof) etc.

Look into this article for more on JFluid from its creator:
http://java.sun.com/developer/technicalArticles/Interviews/Dmitriev_qa.html

HTH,
Arjun.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!