Tomcat runs in the form of a windows Service. The solution to the error occurs. tomcat has an error.
You have configured large memory in catalina. bat:
Set CATALINA_OPTS =-Xms512M-Xmx728Mset JAVA_OPTS =-Xms512M-Xmx728M
In actual measurement, the memory in startup. bat will be set properly according to our configuration, but it will not work if it is started through the windows service.
2 Analysis
Windows Services should obtain memory setting parameters from other configuration items.
Run-regedit-enter the Registry-find the corresponding service in Apache Software Foundation, and click Parameter-Java. On the right side, you will see the configuration of JvmMs and JvmMx:
Tomcat, which was originally used as a windows Service, was set by the memory parameters read from the registry ~
2. Solution
Increase the configuration of JvmMs and JvmMx.
Pay attention to the base number on the right when you modify it. It is more convenient to use the "decimal" base we are used to modify the value ~