Java Heap Space - JVM - Set memory
-Xmx sets the maximum memory heap size
-Xms sets the minimum memory heap size
java -XmsVALUEMIN -XmxVALUENMAX myApp.jar
Example:
java -Xms512M -Xmx1024M osmosis.jar
Written by José Manuel Pereira (JMPergar)
Related protips
3 Responses
Se utiliza mucho a la hora de arrancar servidores de aplicaciones tipo Tomcat, también lo he tenido que utilizar alguna que otra vez en eclipse con proyectos gordos del trabajo
over 1 year ago
·
I knew about the maximum heap size but didn't know about minimum heap size. Thanks for sharing. Just curious: when would you have to set the minimum heap size?
over 1 year ago
·
@arpohahau I suppose when you want to ensure a minimum efficiency.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Java
Authors
Related Tags
#java
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#