We have a java program that directly uses native memory through JNI. Therefore, we want to monitor RSS memory (not just JVM) of java program to ensure no memory leak. The results should be equivalent to value returns in top
command. Does java expose certain API for this?
Asked
Active
Viewed 231 times
1

qqibrow
- 2,942
- 1
- 24
- 40
-
why not just run top? https://stackoverflow.com/questions/6441304/collect-linux-command-output – JavaSheriff Mar 24 '21 at 17:51