Tuesday, June 16, 2009

Troubleshooting JDeveloper Out of Memory Error - Perm Gen Size/ Space

This is another usual error encountered when deploying projects to embedded WebLogic Server in JDeveloper 11g. I have done my searching to google and lost myself on the many lengthy discussion.
To make the life of others easy, here is the solution that I have got:

Change the PermGen size for your internal WLS in \jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\bin\setDomainEnv.cmd
Find the line with MEM_MAX_PERM_SIZE.
set MEM_MAX_PERM_SIZE=-XX:MaxPermSize=128m
Increase it to 256m or 512m. 






An update to this post:
The solution above will just postpone the the raising of the error because of the bigger perm size capacity and not fully solve the issue.
The right solution so far is to leverage the JRockit JVM as told on the following thread:
Another different solution to the "PermGen space issue" -comments solicited

1 comment: