How can i get the amount of heap space (as numerical value, not as percentage) my application is currently using?
I would like such an output to write a script which finds out the maximum amount of memory my application has used.
How can i get the amount of heap space (as numerical value, not as percentage) my application is currently using?
I would like such an output to write a script which finds out the maximum amount of memory my application has used.
The information is stored in /proc/<pid>/maps
, with <pid>
being the Process ID of your application.
Look at this question for further informations.