Any Java developer would have faced the out of memory error with the cause being the limit for JVM's PermGen (Permanent Generation) size. If you are walking in on an environment or project, it is not immediately clear as to how you can get the JVM to simply spit out the current PermGen size without looking around in batch/shell files or system environment for any earlier tweaks.
This is where JConsole is great for quickly figuring out the current PermGen size because it present on any system with a Java JDK installed on it.
- Connect to the JVM with JConsole.
- Click on the Memory tab.
- From the Chart drop-down select the Memory Pool "PS Perm Gen" option.
- After a few seconds the Details panel at the bottom right will refresh and the current Max for the permgen will be shown.