JDK-8202086 : Improve performance characteristics of sun.security.util.MemoryCache
  • Type: Enhancement
  • Component: security-libs
  • Sub-Component: java.security
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2018-04-20
  • Updated: 2022-11-16
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
There have been some reports that MemoryCache may expose scalability bottleneck under heavy load.

An improvement was proposed by Peter Levart.  Mail thread [1], webrev [2].
Request for review [3].

[1] http://mail.openjdk.java.net/pipermail/security-dev/2017-November/016512.html
[2] http://cr.openjdk.java.net/~plevart/jdk10-dev/8186628_ssl_session_cache_scalability/webrev.01/
[3] http://mail.openjdk.java.net/pipermail/security-dev/2018-May/017095.html
Comments
More information from another incident: ADDITIONAL SYSTEM INFORMATION : Centos 7 Latest with Java 8 version 291 with tomcat 7 latest . A DESCRIPTION OF THE PROBLEM : as per https://bugs.openjdk.java.net/browse/JDK-8268026 , we have upgrade to latest java jdk8U291 . But still getting the issue and also on this above bug it is stated that it is not verified what does that means . Stack Trace of BLOCKED Thread : sun.security.util.MemoryCache.get(Cache.java:385) sun.security.ssl.SSLSessionContextImpl.getSession(SSLSessionContextImpl.java:68) sun.security.ssl.SSLSessionContextImpl.get(SSLSessionContextImpl.java:144) sun.security.ssl.ClientHello$T12ClientHelloConsumer.consume(ClientHello.java:833) sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:718) sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:683) sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376) sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:479) sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:457) sun.security.ssl.TransportContext.dispatch(TransportContext.java:200) Also, is https://bugs.openjdk.java.net/browse/JDK-8202086 related to bug came to us . Please check it
16-07-2021