How do I provide JVM arguments to VisualVM?

后端 未结 6 2079
眼角桃花
眼角桃花 2021-01-30 07:44

I\'m using VisualVM from JDK 1.6.0_26 to profile a Java webapp running under Tomcat, but VisualVM often tells me that it doesn\'t have enough memory to take a snapshot, and to u

6条回答
  •  没有蜡笔的小新
    2021-01-30 08:43

    For Mac OSX 10.12+

    If you have downloaded the visualvm dmg from https://visualvm.github.io/download.html and have moved it to the Applications directory. You can find the configuration file visualvm.conf under the location Applications/VisualVM.app/Contents/etc/visualvm.conf. In this configuration file, you can change the

    visualvm_default_options="-J-client -J-Xms24m -J-Xmx256m

    to(e.g.)

    visualvm_default_options="-J-client -J-Xms24m -J-Xmx2048m

提交回复
热议问题