Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Number of classes in memory

 
Michal Glowacki
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

Beginner question, my jsf application after deploying starts loading more and more classes , from about 15000 at the beginning to about 22000. Looking at heap it goes to the same level after gc, so I guess it's not memory leak? Can it be because I use many static functions?

Please give me some hints how and where to investigate.

Michal
 
Rameshwar Kharat
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Try
http://www-1.ibm.com/support/docview.wss?uid=swg21196072
hope this will help you .
 
Michal Glowacki
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have inserted System.gc() into function periodically invoked every 5 minutes, now I have the output like this



For me it means invoking System.gc() is bad idea - it doesn't help much comparing to gc made by JVM) and takes much time (above 1,5s).

Am I right?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic