Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Total loaded classes in Glassfish  RSS feed

 
Maksim Ustinov
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have enterprise app with EJB. The total size of the app is 34 meg.
When i deploy my app everything is fine but when I redeploy it the number of total loaded classes increases. I'm using visualVM to see this info.
So is it how it should be or I need to specify somewhere in configs to delete old classes from the server.
Thanks
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Old, unused classes will be released automatically (usually when the JVM performs a major garbage collection). The question becomes then, are they really freed up? A typical problem with app servers is hanging on to classes from previous deployments of the same application.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!