File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes What is PermGen space? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "What is PermGen space?" Watch "What is PermGen space?" New topic
Author

What is PermGen space?

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
I have one problem, When I run my project.
Can You tell me What is PermGen space error

What situations this type of erros occurs

"Caused by: java.lang.OutOfMemoryError: PermGen space"

Kindly send your replies
Thanks


Thank You<br />Edward
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
Perm generation refers to the heap space where all the loades classes are stored. It's exclusively used to store the class definitions. Guess your applications has very huge number of classes.

You can increase the PermSize :
java -XX:MaxPermSize=128M <application>

Try incrementing the permsize by trail and error.

This link should help:
http://java.sun.com/docs/hotspot/gc1.4.2/faq.html
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Originally posted by Purushothaman Thambu:
Perm generation refers to the heap space where all the loades classes are stored. It's exclusively used to store the class definitions. [/URL]


Well, no, not exactly. It's also used to store interned String objects -- String literals, and Strings returned by the intern() method -- and a few other little things. I believe (although I'm not positive) that in Java 5, the pooled wrapper objects used for autoboxing are stored there as well.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is PermGen space?
 
Similar Threads
Apache commons JCI - OutOfMemoryError
PermGen Space problem???
why i am getting OOM
Caused by: java.lang.OutOfMemoryError: PermGen space ......what kind of error is this?
4 types of memory inside JVM