Start the program in MyEclipse Run, error java.lang.OutOfMemoryError:PermGen space should do? This is why eclipse memory is not enough.
PermGen space is the full name of permanent Generation space, refers to the memory of the permanent storage area, this block of memory is mainly stored by the JVM class and meta information, class is loader will be placed in PermGen Space, unlike the heap area where the class instance (Instance) is stored, the GC (garbage Collection) does not clean up permgen space during the main program run time, so if you have many classes in your application, PermGen space errors are most likely to occur when the Web server pre-compile the JSP. If you have a large number of third-party jars under your web app that are larger than the JVM's default size (4M), this error message will be generated.
One, manually set MaxPermSize size modification Tomcat_home/bin/catalina.bat (Windows system) or catalina.sh (Unix system) in "echo" Using catalina_base: $ Catalina_base "" Add the following line: Set java_opts=%java_opts%-server-xx:permsize=256m-xx:maxpermsize=512m
Second, if you start Tomcat by MyEclipse start the server, you need to set the memory size inside the MyEclipse
Workaround in Tomcat: manually set MaxPermSize size modification tomcat_home/bin/catalina.sh in "echo" Using catalina_base: $CATALINA _base "" Add the following line above: java_opts= "-server-xms256m-xmx256m-xx:maxnewsize=256m-xx:maxpermsize=256m"
How Outofmemoryerror:permgen space is resolved in multiple project MyEclipse start up