![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Identifying and grouping OS processes and APP processes | wilsonee | SUN Solaris | 2 | 09-30-2008 09:26 AM |
| Sun Java Platform, Standard Edition 1.5.0_16 (Java 5 branch) | iBot | Software Releases - RSS News | 0 | 07-23-2008 10:20 AM |
| Sun Java Platform, Standard Edition 1.5.0_15 (Java 5 branch) | iBot | Software Releases - RSS News | 0 | 03-06-2008 05:50 PM |
| Using Subversion, NetBeans IDE, and Sun Java System Web Server With Java ME | iBot | UNIX and Linux RSS News | 0 | 02-01-2008 05:00 PM |
| Monitoring Processes - Killing hung processes | ukndoit | UNIX for Advanced & Expert Users | 4 | 01-17-2008 04:30 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Getting CPU utilization of Java processes
Hi,
I have a java application running as a service in my unix Box. I want to test the CPU utilization and the Memory utilization of the app. I used top command and also the ps commands This command is showing each thread in my app as a separate thread. So I have a lot of j9 entries. Now my question is, if I get the utilization data of the parent process, will that give me the cummulative CPU and memory usage of my app ??? Are there any other tools which can be used to monitor java processes ?? |
|
||||
|
If the java processes are the only service on this box use vmstat (the CPU-related columns). Alternatively use sar, when you need to monitor longer time intervals.
I hope this helps. bakunin |
|
||||
|
You can monitor these kinds of statistics, and more, with Java Management Extensions (JMX). Because the Java Virtual Machine has specific quirks with how memory is utilized (say, separating the memory space into partitions such as heap and non-heap space), just looking at the OS-level resource utilization is not generally adequate. Depending on how you configure, you may either monitor a local process or a Java process running on another system, via a graphical user interface tool such as JConsole (or VisualVM although I cannot get it run properly).
With JMX, you can even write some simple Java program to log selected statistical values periodically on a 24x7 basis and analyse them later offline. You can refer to this document for an introduction of Java SE management and JMX technology: - Java SE Monitoring and Management Guide Or read the JMX specification if you wish to get more in-depth programming knowledge. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|