Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Java process profiling for CPU usage

Thread view: 
OtisUsenet - 25 Nov 2006 23:55 GMT
Hello,

I'm trying to figure out what's causing the load (of 3, 4, 5, and
higher) on my server (Jetty, webapp, JDK 1.5_09) and wondering what the
best way to do it is on a production server.  In other words, which
tool imposes the least overhead for this type of thing?

But here is the interesting part that is a mystery to me:
While the load on the server is high, and it is clearly related to the
webapp that runs there, the Java process itself shows 0% CPU use when
viewed with top!  Any idea why that is?  This is running under Linux,
Fedora Core 3, with 2.6.9-1.667 kernel.

Any help would be very appreciated.  Thank you!
Nirav - 26 Nov 2006 08:53 GMT
> Hello,
>
[quoted text clipped - 10 lines]
>
> Any help would be very appreciated.  Thank you!

You might want to check loadaverage. If your app invovles DB
operations, Check if they are waiting for response. You may also want
to check the I/O and your kernel modules for same.

Why not post nature of your application, what it does?

You can also use jconsole to monitor VM activities.

- Nirav Thaker
Daniel Pitts - 26 Nov 2006 19:06 GMT
> Hello,
>
[quoted text clipped - 10 lines]
>
> Any help would be very appreciated.  Thank you!
It would be helpful to know what processes AREN'T at 0% CPU use.
Tom Forsmo - 27 Nov 2006 01:59 GMT
> Hello,
>
[quoted text clipped - 10 lines]
>
> Any help would be very appreciated.  Thank you!

You could try to use iostat, vmstat and ps to figure out what proceess
is using resources, how it is being used to to what purpose.

tom


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.