---------- Forwarded message ---------- From: Christovam Paynes Silva <christova...@gmail.com> Date: 2012/8/17 Subject: Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled To: users-h...@tomcat.apache.org
Hello Guys, I'm using an Ubuntu 11.10 - 64 bits and a tomcat 7.0.27 with jdk 1.7.0_05 the Oracle and is showing me the following messages on memory leak or lack of space due to not rotate the objects that are in memory of tomcat (as I read the documentation for the oracle this option was to do this "-XX: + UseCodeCacheFlushing" but is not) and so he stops working, so I need to restart the service! But as a production system that is complicated, and takes place 20-30 minutes, the delay times more .. performed various types of settings in catalina.sh for tomcat to clear the cache and garbage, I increased the memory, but these settings are only postponing my problem ... someone has an idea what I can do about the application and the server? Follow the logs of what happens: mmap failed for CEN and END part of zip file .. Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled. Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize= Code Cache [0x00007f630d6f8000, 0x00007f630dc98000, 0x00007f63106f8000) total_blobs=2561 nmethods=1767 adapters=449 free_code_cache=43457Kb largest_free_block=44434048 catalina.sh following settings: JAVA_OPTS="-Dfile.encoding= ISO-8859-1 -Duser.timezone=America/Sao_Paulo -server -Xms700m -Xmx1100m -XX:PermSize=626m -XX:MaxPermSize=826m -XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=264m -XX:CodeCacheFlushingMinimumFreeSpace=50m" Already have also used these options to log in and the results show me that collecting garbage "Full GC" -Xloggc:/usr/local/tomcat7/logs/gc.log -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:-HeapDumpOnOutOfMemoryError .166: [Full GC (System) [PSYoungGen: 4406K->0K(209088K)] [ParOldGen: 64K->4252K(477888K)] 4470K->4252K(686976K) [PSPermGen: 9753K->9750K(641024K)], 0.0497130 secs] [Times: user=0.06 sys=0.01, real=0.05 secs] Heap after GC invocations=2 (full 1): Collections: 30.508: [GC [PSYoungGen: 209087K->29810K(187136K)] 330012K->176456K(665024K), 0.1144700 secs] [Times: user=0.12 sys=0.11, real=0.11 secs] Heap after GC invocations=7 (full 1): PSYoungGen total 187136K, used 29810K [0x00000000e9160000, 0x0000000100000000, 0x0000000100000000) 1.166: [Full GC (System) [PSYoungGen: 4406K->0K(209088K)] [ParOldGen: 64K->4252K(477888K)] 4470K->4252K(686976K) [PSPermGen: 9753K->9750K(641024K)], 0.0497130 secs] [Times: user=0.06 sys=0.01, real=0.05 secs] Thank you