java util concurrent ExecutionException java lang OutOfMemoryError PermGen space Eclipse tomcat

java util concurrent ExecutionException java lang OutOfMemoryError PermGen space Eclipse tomcat

java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError PermGen space – If you see this exception while using eclipse with TOMCAT it means your application is taking more memory what you have allocated or if you have not allocated any memory then taking default assigned memory.

Exception details:

Confusion: Many people thinks to resolve this issue setting memory in eclipse.ini but it will not work.

Solution: You will have to set XX:MaxPermSize in your tomcat server VM argument as below:

Based on your memory on your local system you could modify:

-XX:MaxPermSize=2048m

Reference: Eclipse documentation

Leave a Reply

Your email address will not be published. Required fields are marked *

I am not Robot *