PDA

View Full Version : java.lang.OutOfMemoryError: PermGen space


9424419352
19-04-2010, 12:52
Some time when i access page I received the following error

Root cause:
java.lang.OutOfMemoryError: PermGen space


Solution is to restart the service again. I have assigned Inital memory and Max memory as 256M and 512 M in Tomact server.

Thanks

kjkoster
19-04-2010, 13:03
Dear 9424419352,

The memory setting you made are for the *heap* memory (-Xms and -Xmx). The error points you to say that there is a problem with your permgen, which is part of your *non-heap* memory pools.

Please specify the size of the permgen using -XX:MaxPermSize. For example, I run with -XX:MaxPermSize=256M for my larger servers.

Kees Jan