Thursday, November 15, 2012

java monitoring memory usage on server

If you want to see how memory used by java process using command line tools.
You can use jmap command on server.

First you need to get the process id using ps or jps command.

Then use following command, to see memory consumption by java process.

on 32 bit OS you need to use,

jmap -J-d32 -heap <process_id>

on 64 bit os you need to use,

jmap -J-d64 -heap <process_id>

No comments:

Post a Comment