My Oracle Support Banner

How to Reduce High Contention in Some sun.security.provider Methods (Doc ID 2524983.1)

Last updated on NOVEMBER 14, 2020

Applies to:

Java SE JDK and JRE - Version 8 to 11
Information in this document applies to any platform.

Goal

1.) An application experiences significant performance degradation under high volume.  It is noticed in Java Flight Recordings (JFR) that the most contention is demonstrated in the sun.security.provider.NativePRNG$RandomIO.implNextBytes method.
    NativePRNG seems to be what is chosen when the following Java options are used:


    What can be done to reduce or eliminate this performance degradation?

2.) Also, the SecureRandom section of the Java Cryptography Architecture Oracle Providers Documentation shows that there's a NativePRNGBlocking and NativePRNGNonBlocking implementation.
    How do I know which one I'm getting when the output only says NativePRNG?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.