Window service of Tomcat memory overflow

*, the initial memory configuration of tomcat startup

Startup method 1: use startup.bat, at this time, tomcat refers to the memory configuration information in the catalina.bat file;
Startup method 2: When using the window system service method to start tomcat, tomcat.exe is used, and the loaded memory configuration information is obtained from the registry;
Combining the above two methods can understand different startup methods, then the source of tomcat configuration information is also different, pay attention! ! !

    The configuration modification method of Mode 2 is as follows:

Installed version or 32-bit tomcat:
    HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\.....
Restart the tomcat service, the settings will take effect
Green version or 64-bit tomcat:
    After installing tomcat as a window service through service.bat (remember to install it as a system service), it will be generated in the registry
Configuration information, and then trace the registry path:
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\.....
You can modify the memory configuration information of a specific tomcat
    Core information: options option: increase -XX:PermSize=256M
                               -XX:MaxPermSize=1024M
              jvmms: adjust the minimum value
              jvmmx: adjust the maximum value
    Note: If you encounter the prompt "REG_MULTI_SZ type data cannot contain empty strings", just delete the space pasted in
Seriously, you'll find that space! ! !

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326681885&siteId=291194637