Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

100% CPU

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe JProbe? Though I am not sure if it is possible to attach this tool to already running program.
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
This tiny ad is wafer thin:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic