AsyncHttpClient / async-http-client

Asynchronous Http and WebSocket Client library for Java
Other
6.26k stars 1.59k forks source link

High CPU consumptions with Java 11 #1772

Open ZhezherP opened 3 years ago

ZhezherP commented 3 years ago

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

jingke commented 3 years ago

do we know what's the reason for this?

DanielSaunders commented 3 years ago

This isn't super helpful, more of a "me too," but I seem to be encountering the same issue on Java 11. I have a Play app, so perhaps there is some interaction there. However, I also am using Java 11 and see profiles that look very similar to yours, where the AsyncHttpClient threads appear to consume a huge amount of CPU. Have you found any solution to the problem?

ZhezherP commented 3 years ago

@DanielSaunders no, still using java10