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
or I think this works too:
jvisualvm.exe -J-Xmx512m (or whatever amount you need)
jvisualvm.exe -J-Xmx512m
-J on the .exe command line for onetime settings, or the .conf file noted in the other answer for changing defaults