0

I have one simple Login and logout springs application which is throwing exception java.lang.OutOfMemoryError: PermGen space again and again. I tried to change VM option of application in my NetBeans IDE but its not working. I made following changes:

-Xmx1024m

and

-Xmx512m

Every time my application is running 2-3 times then throwing this exception. is it because of my code or any other configurations? How can i solve it?

Manish Mahajan
  • 1,140
  • 1
  • 14
  • 38

1 Answers1

1

The PermGen memory space sits outside of the heap, so changing Xmx won't help.

Try the following: -XX:MaxPermSize=256m or some larger value if that's not enough.

Hope this helps,

Will

Will
  • 6,561
  • 3
  • 30
  • 41