JVM JIT deoptimization after idle
问题 I use Java primarily for writing pet projects, which are idle most of the time. And after being idle for hours/days response time increases to seconds (up to 10s), then slowly decreases back to 200-300ms. As far as I understand, this happens because of JIT deoptimization (optimized code becomes marked as a zombie, removed and later compiled again). Is there any way to forbid JVM to deoptimize code unless code cache is full? Java 9's AOT looks like the best solution for this case, but I still