Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class Loading problem in Java Enterprise application

I have Enterprise Application with EJB3 and JSF on Glassfish server. After running this application for more than 2 weeks I realized that I have problem with Class Loading. I don't think this is a problem with permgen. The classes loaded every time when I open a page but then they never erased from the memory. Here is the snapshot of or my server's memory:

Snapshot

So, i just need some pointers of how I can debug this problem.

like image 328
Maksim Avatar asked Dec 06 '25 17:12

Maksim


1 Answers

There's a nice explanation of why this sort of things happen, and a more recent account of similar problem here.

Using jhat might help to find out what classes are occupying the memory, and then look for a static reference that may hold them/or the classloader, preventing proper unloading.

like image 64
Yardena Avatar answered Dec 08 '25 07:12

Yardena



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!