• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PermGen Out Of Memory

 
Somnath Mallick
Ranch Hand
Posts: 482
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I have Eclipse Galileo, and when i build or try to publish a project I keep getting Perm Gen out of memory exception and my Workspace just prompts for shutting down. I have increased the PermGen size to 2048m and still i get the error. Any help would be appreciated!


I dont know what else information to provide. If there is something missing please let me know, I would be able to provide it.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You set the max perm size for the launcher, which is not that same as for Eclipse itself. Try, after the "-vmargs" line, adding "-XX:MaxPermSize=512MB"

Also, after you launche Eclipse, verify that the MaxPermSize for the javaw process is set to the value you indicated. If you don't know how to do that, tell me what OS you are using and I can provide details.
 
Somnath Mallick
Ranch Hand
Posts: 482
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. I would try adding the line and see. I am on Windows XP. After i posted here... i am getting the error even when i do a clean and build!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic