Java Httpurlconnection
Bradford Wetmore
bradford.wetmore at oracle.com
Wed Sep 25 23:34:06 UTC 2019
To follow up on JDK-8230704[1], this is 99% caused by lack of entropy in
the system when initializing a SHA1PRNG SecureRandom PRNG instance (i.e.
sun.security.provider.SecureRandom), which uses by default the following
entropy source:
securerandom.source=file:/dev/random
and is a very well known problem[2]. Look closely to see if you are
using a sun.security.provider.SecureRandom. This will block until it
can complete.
If you're ok with using /dev/urandom to initialize the seeder for
SHA1PRNG, one workaround is to set:
securerandom.source=file:/dev/./urandom
Another is to use NativePRNG. Not sure if it's available on your ARMv7
impl.
Good luck,
Brad
[1] https://bugs.openjdk.java.net/browse/JDK-8230704
[2]
https://stackoverflow.com/questions/137212/how-to-solve-slow-java-securerandom
There's a few bits of incorrect/misleading information here, but much
of it is correct.
On 9/11/2019 11:43 PM, Somshekar C Kadam wrote:
> Hi Joe and Fransteik, FLoran.
>
> wanted to share this information with you, as the normal standard java 1.8
> implements older HttpURLConnection API has lot design issues, see below
> link,
> newer HTTP CLient is implemented in Java 11 and is standard.
>
> http://openjdk.java.net/jeps/110#Motivation
>
> Also attached PDF for the same.
> This adds to reason to the delay what I am seeing.
> @Joe this may help others so mailing this.
> Regards
> Somshekar C Kadam
> 9036660538
>
More information about the jdk-dev
mailing list