Recently I worked with Eclipse plugin development. While I tried run Ecipse plugin project, I got "PermGen space - OutOfMemory Error". I just googled and read some online resources and solved that problem.

Why this Error

Whenever we tried to run the plugin project, Ecipse will open new Eclipse with new work-space. This new work-space will run on new JVM. Generally this JVM memory space is 64mb. This memory is not sufficient to run Eclipse. This is why it throws "PermGen space - OutOfMemory Error".
To avoid this exception, we need to increase PermGen space.

Increase in PermGen Space

Go to Eclipse menu bar and click on
Window > Preferences > Java > Installed JREs > Select the JDK > Edit >
Enter "-XX:MaxPermSize=256m" in "Default VM Arguments" field.
Now the JVM to run Eclipse plugin will have 256MB memory. It is sufficient to run Eclipse. If 256m is not sufficient then make it as 512m.

1 comment:

  1. Good blog. Keep sharing. I love them Are you also searching for ajman assignment help? we are the best solution for you. We are best known for delivering writing services to students without having to break the bank



Popular Posts