PermGen error in Java, while memory usage seems low

view full story

http://serverfault.com – Java application dies from time to time with PermGen space error, but when I look at the memory usage it seems low from what I can tell. It is a Tomcat application, plus there is SOLR server running (under the same tomcat). JVM params in catalina.sh: -Xms1024m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/logs Error in catalina.out: java.lang.OutOfMemoryError: PermGen space Dumping heap to /path/to/logs/java_pid22335.hprof ... Heap dump file created [107041478 bytes in 1.823 secs] Exception in thread "pool-5-thread-1" java.lang.OutOfMemoryError: PermGen space (HowTos)