We are running a Swing App which starts getting very slow after a time and it appears to be due to the fact that the PermGen size as seen in JVisualVM is reducing until eventually the Permgen used is the same as the size.
The Heap size does not appear to be an issue at the corresponding time.
I would Post an image but stackoverflow is stopping this due to my reputation being less than 10.
What the image shows is the Orange line representing the Size being flat for the first 5-10 minutes and then reducing as activity occurs. The Blue line indicating the PermGen used is rising slowly.
I can increase the Initial and Max Permsize and this will probably be used as a work around but I would like to understand why the Permgen size is reducing.
I have included the graph from JVisualVM which indicates the issue.