[ 
https://issues.apache.org/jira/browse/SLING-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16218232#comment-16218232
 ] 

Ian Boston commented on SLING-3317:
-----------------------------------

Seeing this behaviour regularly with Oracle JDK 1.8.144 (was not previously 
seeing it with 1.8.131). Perhaps it should be fixed by either upgrading the 
Tomcat libraries or using the patch supplied ?

If anyone objects please shout, otherwise I will get the patch applied.

> Concurrent access to WeakHashMap in ConcurrentCache causes infinite loop, 
> 100% CPU usage
> ----------------------------------------------------------------------------------------
>
>                 Key: SLING-3317
>                 URL: https://issues.apache.org/jira/browse/SLING-3317
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Takahito Kikuchi
>             Fix For: Scripting JSP 2.3.4
>
>
> On a web application with Apache Sling Scripting JSP 2.0.24, 100% CPU usage 
> problem happened as following. It looks similar to the tomcat problem, 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50078
> ----
>    java.lang.Thread.State: RUNNABLE
>       at java.util.WeakHashMap.get(WeakHashMap.java:470)
>       at org.apache.el.util.ConcurrentCache.get(ConcurrentCache.java:24)
>       at 
> org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:90)
>       at 
> org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:146)
>       at 
> org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:190)
>       at 
> org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
>       at 
> org.apache.sling.scripting.jsp.jasper.el.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:45)
>       at 
> org.apache.sling.scripting.jsp.jasper.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:55)
> ----
>    java.lang.Thread.State: RUNNABLE
>       at java.util.WeakHashMap.eq(WeakHashMap.java:343)
>       at java.util.WeakHashMap.put(WeakHashMap.java:521)
>       at java.util.WeakHashMap.putAll(WeakHashMap.java:640)
>       at org.apache.el.util.ConcurrentCache.put(ConcurrentCache.java:34)
>       at 
> org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:123)
>       at 
> org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:146)
>       at 
> org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:190)
>       at 
> org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
>       at 
> org.apache.sling.scripting.jsp.jasper.el.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:45)
>       at 
> org.apache.sling.scripting.jsp.jasper.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:55)
> ----



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to