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
I started with
jvisualvm -J-Xms1024m -J-Xmx2048m
and it worked.