Sciology = Science + Technology

Commonsense in Technology

  • Archives

  • Pictures

Archive for the ‘OutOfMemoryError’ Category

Help me with PermGen:OutOfMemoryException

Posted by sureshkrishna on September 28, 2007

I have a plugin developed for and AJAX based application with the help of Platform + EMF + WTP combination.
Many of the clients who report this out of memory have following conditions…
# Eclipse or Windows OS is not shut down for a long time; nearly for days.
# After a long time of inactivity on eclipse, Whenever a client clicks on any of the action or an editor, application just hangs.
# When a client is working on this application for a long time CPU goes 100% and except killing the eclipse application there is not other way.
Of course at this point of time i have no idea, what makes application crash with PermGen Error. There could be some thing wrong with the plugins that we made, but at the same time i dont get any error log for this PermGen:OutOfMemoryException.

I would appreciate if anyone can let me know about some of the utilities that i can use to find out the root cause.

Anykind of suggestions and solutions will be appreciated.

Posted in Eclipse, Eclipse Performance, Java, OutOfMemoryError, Plug-ins, Plugin | 13 Comments »

java.lang.OutOfMemoryError: PermGen space

Posted by sureshkrishna on July 19, 2007

Looks like this is been a common error for almost memory intensive applications now-a-days. I have been working on eclipse for a long time and recently with the Eclipse + Java 1.5.0_04 + EMF + WTP combimation of installation, i have been seeing the error more often.

Its been quite emberrasing to see such errors on the client machines and especially when i was not sure of the problem and the root of the cause. In anycase after going through couple of documents on the java and eclipse news groups, looks like this problem can be avoided if we set some jvm arguments. Some also suggest that if we use IBM’s Java, it would be solved. But i have not changed the Java from Sun to IBM but just the vm arguments works.

It can be done in few different ways…

  • Set the arguments in the Run or Profile windows of eclipse -XX:PermSize=128M -XX:MaxPermSize=256M
  • Set the arguments in eclipse.ini file in eclipse home directory
  • Set these programmatically…

In my case i have the following vm agrs already set  🙂

-Xms256m
-Xmx1024m
-XX:PermSize=128M
-XX:MaxPermSize=256M

 Few other sources to get more info…

http://www.brokenbuild.com/blog/2006/08/04/java-jvm-gc-permgen-and-memory-options/

http://java.sun.com/docs/hotspot/gc1.4.2/faq.html

Posted in Exceptions, Java, OutOfMemoryError | 1 Comment »

 
Design a site like this with WordPress.com
Get started