Java Httpurlconnection
Somshekar C Kadam
somkadam76 at gmail.com
Wed Aug 21 08:43:01 UTC 2019
Hi Frantisek,
With http no issues, there is no delay it happens quickly within 1 ~2
seconds.
When used https see this long delay.
I will look in strace once again and let know thanks
regards
Somshekar
Regards
Somshekar C Kadam
9036660538
On Wed, Aug 21, 2019 at 1:32 PM František Kučera <franta-java at frantovo.cz>
wrote:
> 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