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
Post a Comment