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 app , the PermGen space error is likely to occur, which is common 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.
Workaround:
1. Double-click Tomcat in the service
2. Click Open Launch Configuration
3. Select arguments in the pop-up box and add the following code to the VM arguments:
-xms256m-xmx512m-xx:permsize=256m-xx:maxpermsize=512m
4, click OK, complete.
Java.lang.OutOfMemoryError:PermGen Space Anomalies and solutions