Hi how can I get memory usage per process in linux?
thanks
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35230
7
posted
0
Do you mean manually of programmatically? The "top" command lists all processes with their real and virtual memory allocations. You could run that from within Java using Runtime.exec and parse its output for the values you're interested in.