Case 1: The decompressed version of tomcat can only be loaded by starting Tomcat through startup.bat
To be added to catalina.bat is under the bin of tomcat.
If not defined, rem guesses CATALINA_HOME.
Set CURRENT_DIR=%cd% is new, and the red one is new.
set JAVA _ OPTS =-xms 256m-xmx 5 12m-XX:PermSize = 128m-XX:MaxNewSize = 256m-XX:MaxPermSize = 256m-DJ ava . awt . headless = true
Case 2: There is no catalina.bat under the installed version of Tomcat.
The windows service executes bin\tomcat.exe, which reads the values in the registry instead of the settings of catalina.bat
Modify the registry HKEY _ Local _ Machine \ Software \ Apache Software Foundation \ Tomcat Service Manager \ Tomcat 5 \ Parameters \ Java options.