Class Loading

 
 
Total Class Count: 21907

Garbage Collectors

You can run the standard garbage collector, System.gc(), to get a better idea of current memory consumption.
Standard garbage collection is not guaranteed to free the maximum amount of memory possible. One way of forcing a more thorough garbage collection is to deliberately cause a PermGen out of memory error. Note that this can cause other applications running in the same JVM to exhibit errors due to a lack of memory. It is advised that this approach is only used in a test environment for discovering memory leaks etc.