Tomcat java.lang.OutOfMemoryError: PermGen space

Open source software supply chain lighting plan, waiting for you>>>

Permsize memory allocation is too small( Non heap memory)
permsize and maxpermsize indicate that the virtual machine allocates memory limits for Java permanent generation objects such as class objects and method objects, which are not included in heap memory

Modifying Tomcat memory configuration

Service startup
· open the registration list editor and find the following location: HKEY_ LOCAL_ The 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 in the right window, add the following line:
· – XX: permsize = 256M
· – XX: maxpermsize = 512M
· modify jvmms, decimal is 1024
jvmmx, decimal is 2048

command start
if it is started from the command line, you need to set Java in catalina.bat_ OPTS=-Xms1024m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m

Similar Posts: