Java Httpurlconnection

František Kučera franta-java at frantovo.cz
Wed Aug 21 08:01:33 UTC 2019


Dne 21. 08. 19 v 8:58 Somshekar C Kadam napsal(a):
> Hi All,
> Even if I try this simple httpsurlconnection java program to print content
> it takes more than 10 seconds on ARM not in intel. Not sure why please help

Do you observe any differences between HTTPS and HTTP requests? Is it 
slow only on encrypted connection or also unencrypted? If only encrypted 
connections are slow, it is sometimes caused by lack of entropy in the 
random number generator (RNG). If it is slow even with unencrypted HTTP, 
it might relate to IPv6 or DNS problems.

You can try strace -ttf -o strace.log java ... and look and compare the 
strace.log files. Or run it under the Java debugger e.g. in Netbeans 
(can debug also remotely) and find the step where the 10 seconds are spent.

Franta



More information about the jdk-dev mailing list