I face a very annoyed exception in glassfish which is
SEVERE: Exception in thread "RMI RenewClean-[192.168.1.2:8686]"
SEVERE: PermGen space
java.lang.OutOfMemoryError: PermGen space
my hardware resources r high, and when I open task manager and notice the resources, it’s available,
this exception force me to restart my pc every 10 to 15 minutes 🙁 what should I do?
You need to increase the amount of PermGen space using the
-XX:MaxPermSize=256mflag.See this related SO question
In order to set this up in Glassfish, use the following steps:
The amount of memory depends on the amount you need. Increase it if it keeps crashing, but reading the PermGen article may help in determining the right amount.