Manish Mahajan
Manish Mahajan

Reputation: 1166

Permgen space error for springs application

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?

Upvotes: 0

Views: 115

Answers (1)

Will
Will

Reputation: 6711

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

Upvotes: 1

Related Questions