I am trying to monitor the memory usage of my java program. As of now I am using 'Top'. Top is a command line tool that shows you the memory usage of your program. The out put example will is similiar as the following:
$# top -p <pid>
Output:
PID: <PID>
User: <user>
VIRT: 513M
%MEM: 25.1
I am trying to find a better memory monitoring tool that can show me what are the java objects that resides in the memory, their size, etc.