Monday, July 5, 2010

An easy way to get rid of java.lang.OutOfMemoryError: PermGen space, in JDeveloper 11g


When applications are deployed again and again in JDeveloper after some times java.lang.OutOfMemoryError: PermGen space will occur, stopping your application being deployed.


After this error occur the process java.exe should be killed before the next deployment. This can be easily done using a .bat file which kills the process. (the .bat attached with this)




But with the option “External Tools” in JDeveloper killing this process takes only a single click!

JDeveloper>> Tools>> External>> Tools>> New>> Next

Browse the .bat file and Next>> Next

From the Integration window select where you want the icon or menu item to be appeared.


Then click Finish.

Now you can see the icon appearing in the main window.



Whenever you get the java.lang.OutOfMemoryError: PermGen space, what you have to do is to click on the newly created icon, the process java.exe will be terminated.