how to monitor the memory usage of a java program? -


i proposed algorithm, , want prove superiority compared algorithm in terms of time&space consumption. implement algorithm in java, know how monitor memory consumption of java program when program executing? thanks.

from jdk 6 onwards have tool in bin directory monitors cpu, memory consumption number of threads spawned. called visualvm. start , start java process. see java process in tool on left hand side. double click on process , view statistics. hope helps. :)


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -