High CPU consumptions with Java 11

Author: ZhezherPCreated Feb 10, 2021Updated Mar 27, 2025

Hi! I have very high CPU consumptions with Java 11. It's ok with java 8-9-10. I've created simple program to reproduce this bug. Test ran with oracle and openjdk. Program: https://github.com/ZhezherP/AHC-java-11-bug

VisualVM dumps and screenshots are attached. snapshot-1612971737998-example-java11.nps.txt snapshot-1612972190828-example-java10.nps.txt

Java 10 java10 Java 11 java11 Java 11 reason java11_reason

Source: AsyncHttpClient/async-http-client