• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

What is PermGen space?

 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic