This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes when do classes in jars enter the PermGen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "when do classes in jars enter the PermGen" Watch "when do classes in jars enter the PermGen" New topic
Author

when do classes in jars enter the PermGen

adam spline
Greenhorn

Joined: Sep 29, 2010
Posts: 18
Hi,

My understanding is that the PermGen (in some sense) holds the class code in memory. Often we have lots of jar files in our servlet apps, which themselves have lots of classes. When a jar file is included in the classpath (say in the lib directory of tomcat), are all the classes of all those jars automatically loaded into the PermGen?

In a similar question, once a class of a jar file is used, does PermGen load all the classes in that jar file, or just the class that is used (and then later load the rest of the class files when necessarty)?

Thanks! -Adam
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: when do classes in jars enter the PermGen