Java: JVM parameters, Application Cache, Calculation of Memory Footprint
Hi, In a previous post http://www.javablog.fr/java-jvm-memory-parameters-outofmemoryerror-and-memory-checker.html, we spoke about solution in order to avoid the famous OutOfMemoryError: Java heap space or OutOfMemoryError: PermGen space errors and JVM parameters (-XX:PermSize, -XX:MaxPermSize, -Xms, -Xmx).   In this post, I would like to expose a simple method to calculate the memory footprint of JAVA objects in a cache in order to set the appropriate values of ...more»