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
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