I am running a Web Based Java Application on JBoss and Ofbiz. When I did memory profiling of the JVM using VisualVM I found that a huge amount of classes and their objects are getting uploaded to the heap, but not getting cleared/unloaded after the application terminates.
I understand that JVM does automatic Garbage Collection, which should ensure the heap is cleared after the program terminates.
JBoss and Ofbiz are supposed to run all the time. But it seems to clear heap we have to restart all these apps and start fresh again. But our application is supposed to be live 24x7.
Can you please tllme what can be the issue here? I am not sure what all things I should monitor to get to the root issue.