Occassionally hanging on thread sun.security.krb5.Config.refresh during Kerberos login

Problem:

On Zulu 8.44.0.12-SA-linux64 (build 1.8.0_242-b20), occasionally, threads are backing up when attempting a Kerberos login. There is one runnable task:

 

"default task-19" #653 prio=5 os_prio=0 tid=0x0000000017e67800 nid=0x7945 in Object.wait() [0x00007f22bb3ea000]
   java.lang.Thread.State: RUNNABLE
     at sun.security.krb5.Config.refresh(Config.java:151)
     - locked <0x00000005e2602750> (a java.lang.Class for sun.security.krb5.Config)
     at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:554)
     at org.jboss.security.negotiation.KerberosLoginModule.login(KerberosLoginModule.java:190)
     …

 

And over time hundreds of threads waiting for the one thread to finish, such as:

 

"default task-20" #654 prio=5 os_prio=0 tid=0x000000000a89f000 nid=0x7946 waiting for monitor entry [0x00007f22bb3aa000]
   java.lang.Thread.State: BLOCKED (on object monitor)
     at sun.security.krb5.Config.refresh(Config.java:150)
     - waiting to lock <0x00000005e2602750> (a java.lang.Class for sun.security.krb5.Config)
     at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:554)
     at org.jboss.security.negotiation.KerberosLoginModule.login(KerberosLoginModule.java:190)
     …

 

Cause:

This is due to:

JDK-8080911 sun/security/krb5/auto/UseCacheAndStoreKey.java timed out intermittently

 

Solution:

This bug is fixed in the April 2021 PSU release, so upgrading to "zulu8.54.0.22" or later will resolve this issue.

Add Comment

Comments

0 comments

Please sign in to leave a comment.

Was this article helpful?
0 out of 0 found this helpful