Mantis - Resin
Viewing Issue Advanced Details
6435 minor always 07-30-21 08:52 09-15-21 15:11
nam  
ferg  
normal  
closed 4.0.65  
fixed  
none    
none 4.0.66  
0006435: race condition in ScriptStackTrace causing 100% cpu usage
(rep by M. Secrett)

WeakHashMap used in ScriptStackTrace.java may be causing a race condition resulting in 100% CPU. See WeakHashMap app-0.log for multiple references to threads stuck in WeakHashMap used by ScriptStackTrace.getScriptLineMap().


"resin-port-8080-1086 RUNNABLE
                         at java.util.WeakHashMap.transfer (WeakHashMap.java:529)
                         at java.util.WeakHashMap.resize (WeakHashMap.java:494)
                         at java.util.WeakHashMap.put (WeakHashMap.java:467)
                         at com.caucho.java.ScriptStackTrace.getScriptLineMap (ScriptStackTrace.java:138)
                         at com.caucho.quercus.env.ProEnv.getSourceLine (ProEnv.java:104)
                         at com.caucho.quercus.lib.ErrorModule.debug_backtrace_exception (ErrorModule.java:169)
                         at com.caucho.quercus.lib.ErrorModule.debug_backtrace (ErrorModule.java:112)
                         at com.caucho.quercus.lib.ExceptionClass.__construct (ExceptionClass.java:74)

There are no notes attached to this issue.