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 use the -Xmx switch to provide more memory to Netbeans. The problem is, I'm running VisualVM outside of Netbeans, so how can I provide JVM arguments to jvisualvm.exe?
Java – How to provide JVM arguments to VisualVM
javajvmvisualvmwindows
Related Topic
- Java – How to read / convert an InputStream into a String in Java
- Java – How to generate random integers within a specific range in Java
- Java – Increasing the JVM maximum heap size for memory intensive applications
- Python – How to install pip on Windows
- Java – How to convert a String to an int in Java
- Java – How to create a memory leak in Java
- Java – How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
- Java – What are the -Xms and -Xmx parameters when starting JVM
Best Answer
Should be able to modify the memory settings in
%JDK_HOME%\lib\visualvm\etc\visualvm.conf
Xms
andXmx
are in thedefault_options
line.