Skip to content

Error occurred during initialization of VM Could not reserve enough space for object heap

O “Error occurred during initialization of VM Could not reserve enough space for object heap” é comum na inicialização do Tomcat 7 com JDK 7 no Linux 64 bits.
No console pode-se conferir a mensagem:

Error occurred during initialization of VM
Could not reserve enough space for object heap

Para resolver o problema com a alocação de memória, execute o comando:

export _JAVA_OPTIONS=”-Xms20m -Xmx64m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewSize=10m -XX:MaxNewSize=10m -XX:SurvivorRatio=6 -XX:TargetSurvivorRatio=80 -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled”

Leave a Reply

Your email address will not be published. Required fields are marked *

Marco Reis
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.