Java Httpurlconnection
Somshekar C Kadam
somkadam76 at gmail.com
Wed Aug 21 11:16:45 UTC 2019
Hi Frantisek.
Thanks for your suggestion
I am seeing on ARM lot many seconds wasted on this as shown below logs.
Where as in Intel I did not see a single reference, seems that is something
to do with it, need to look further into it.
============
15033 08:10:27.254816 clock_gettime(CLOCK_MONOTONIC, {4286, 606936331}) = 0
15033 08:10:27.255070 clock_gettime(CLOCK_MONOTONIC, {4286, 607189947}) = 0
15033 08:10:27.255504 clock_gettime(CLOCK_MONOTONIC, {4286, 607662716}) = 0
15033 08:10:27.255924 clock_gettime(CLOCK_MONOTONIC, {4286, 608074100}) = 0
==================================
Regards
Somshekar C Kadam
9036660538
On Wed, Aug 21, 2019 at 2:44 PM Somshekar C Kadam <somkadam76 at gmail.com>
wrote:
> Hi Frantisek,
>
> Thanks for your help, I am going through the log.
> Also attached here, to know your opinion too, that will help.
>
> 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