I monitored a Java7 application for a couple of week and I observed a couple of things that i would like to understand.
From the application start the number of total loaded classes has grown constantly, I think that this is normal since the application (based on netty 3.6 library) open and closed a lot of tcp connections hourly. I don't think I should worry about this also because the Current classes loaded counter did not grown.
What I can't understand it's why approximately every 7 days the number of the total loaded class drops to the current classes loaded counter. Also the Heap Memory usage seems follow the same pattern: the heap space grows till 70mb and then decreases to 20mb.
It is like every 7 days a more "deeper" execution of the Garbage collector it is executed.
The application has never been restarted.
Can someone explain me this behaviour? Thanks.
P.S. Unfortunately i couldn't take a screenshot of the JConsole.