async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

High CPU consumptions with Java 11

Open ZhezherP opened this issue 4 years ago • 3 comments

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

ZhezherP avatar Feb 10 '21 16:02 ZhezherP

do we know what's the reason for this?

jingke avatar May 27 '21 02:05 jingke

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?

DanielSaunders avatar Jun 01 '21 09:06 DanielSaunders

@DanielSaunders no, still using java10

ZhezherP avatar Jun 02 '21 14:06 ZhezherP