Вопрос

I have Tomcat 7 on my local Windows 7 machine. When I include -Xmx in my catalina.bat file for JAVA_OPTS Tomcat does not start. But runs if it is removed. What could cause this to happen? Is my syntax wrong?

catalina.bat file:

set JAVA_OPTS=-Xms128m –Xmx1024m -XX:PermSize=256m -Djava.rmi.server.hostname=MY_IP
Это было полезно?

Решение

Sometimes it might not function when the memory you specify is more than the available memory allocated to the VM by the environment in which it is running. Inspect the logs to find the specific error/exception being thrown.

Note that the available system memory might not all be available to the JVM regardless of the cap you specify. This depends on other applications that are running. The OS generally has the upper hand on memory allocation.

Also, this answer might help you.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top