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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -