How to memory profile in Java?

前端 未结 6 2061
伪装坚强ぢ
伪装坚强ぢ 2020-12-01 03:38

I\'m still learning the ropes of Java so sorry if there\'s a obvious answer to this. I have a program that is taking a ton of memory and I want to figure a way to reduce its

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 04:01

    Java JDK comes with JVisualVM under bin folder, once your application server (for example is running) you can run visualvm and connect it to your localhost, which will provide you memory allocation and enable you to perform heap dump

    For more detailed steps on how to enable: http://sysdotoutdotprint.com/technologies/java/6

提交回复
热议问题