PermGen space solution

The following error occurs when Tomcat starts: Java .lang.OutOfMemoryError: PermGen space Solution:     Configure the relevant memory size. Among them, according to the different ways of starting tomcat, there are three cases as follows     : a): If it is the tomcat plug-in of eclipse to start tomcat, add the JVM parameters in the "window" menu - "Preferences" - "Tomcat" - "JVM Settings" as follows :         -Xms128M -Xmx512M -XX:PermSize=128M -XX:MaxPermSize=256M     b): If tomcat is installed as a windows service, start from the service, then open the registry editor and navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\ Procrun 2.0\tomcat6\Parameters\Java (Win7 X64 system is located in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\tomcat6\Parameters\Java)         Double-click the "Options" key value in the right window and add the following line:         -XX :PermSize=128M         -XX:MaxNewSize=256m         -XX:MaxPermSize=256m     c): If you start tomcat from the command line, modify the script file (catalina.bat under Windows,
    














In Linux , it is catalina.sh). In the same way, add the above parameters to the JAVA_OPTS variable.

Guess you like

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