Forum Stats

  • 3,767,820 Users
  • 2,252,720 Discussions
  • 7,874,337 Comments

Discussions

Code cache full lead to JIT stops compiling

Hi Team

I've seen a lot on the Internet about the problem that if the CodeCache area is full, it will lead to the stop of the JIT compilation

OpenJDK Hotspot Compiler Development List - JIT stops compiling after a while (java 8u45)

https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8006952

To avoid this problem, we have to write code, when CodeCache reaches 70%, we call System.gc (); But I see you mentioned that the problem has been solved in JDK 8, but it's a pity that no specific JDK version number is given. Here's my JDK version, and I'd like to ask if you've solved the problem of JIT STOP.

java version "1.8.0_111"

Java(TM) SE Runtime Environment (build 1.8.0_111-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

thanks a lot

Answers