File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Measure JVM CPU using ps/top etc using Linux commands

 
Gautam Raj Singh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to develop a perl/shell script using linux commands only for finding out how much CPU, Memory and other stats for JVMs on our WAS servers.
Problem is when using `top` the JVM keeps forking out many different process and whose cpu keeps spiking so making it difficult to monitor. Do I need to add cpu usage/memory child process of JVMs PID and

I need to whats the best way to tackle this problem?

Regards
Gautam
 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Linux, one consideration is procfs. You can get live information, just by reading files. There are a bunch of files in /proc that gives you the state of the system. And a bunch more in /proc/PID that will give you the state of a particular process.

Henry
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic