Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when do classes in jars enter the PermGen

 
adam spline
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic