GeeCON Prague 2014*
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


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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: when do classes in jars enter the PermGen