Turn from 71455432
Java.lang.OutOfMemoryError:PermGen Space
The full name of PermGen space is permanent Generation space, which is the permanent storage area of memory. This area of memory is used to store class and meta information, and class, when it is load by the JVM, The class information is placed in the area. Unlike the heap area where the instance is stored, the GC does not clean up the PermGen space while the main program is running.
Internet search for the increase PermGen space can be. Set java_opts= "-xx:permsize=97m-xx:maxpermsize=256m″ before Tomcat's java_opts variable Catalina.bat However, this method did not solve the problem, and later saw an article to solve the solution:
Set the property VM arguments under the Run as--->run configuragtions--->jre tab:
-server-xms512m-xmx1024m-xx:permsize=512m-xx:maxpermsize=512m-xx:+cmsclassunloadingenabled
-xx:+printgcdetails-xloggc:%m2_home%/gc.log-xx:+heapdumponoutofmemoryerror-xx:heapdumppath=%m2_home%/java_ Pid.hprof
The parameters are described as follows:
-xx:+cmspermgensweepingenabled: Allow Permgenspace garbage collection
-xx:+cmsclassunloadingenabled:allows the garbage collector to remove even classes from the memory
-xx:permsize=256m-xx:maxpermsize=256m:raises The amount of memory allocated to the Permgenspace
Java.lang.OutOfMemoryError:PermGen space and its solution under Eclipse+maven environment