I have web application developed with Spring/Hibernate.
When I do Profiling using JProfiler it shows around 9k WebAppClassLoader. We execute some groovy expression in run time that increases the count to 20K.
I did this to find the Leak.
- Deployed the application
- Execute some test runs
- Redeploy the application
- Trigger GC from JProfiler
The count WebAppClassLoader never reduces, PermGen as well. When I do HeapWalk it shows many classes not sure which one has leak.
- I tried the same with simple Spring MVC application. Noticed the same. Is there any spring property/config to resolve this.
- Is there any way to stop loading class in run time when groovy expression run