tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44408] EL-expression evaluation slow due to synchronization caused by JspFactory.getDefaultFactory
Date Thu, 03 Feb 2011 19:48:12 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44408

--- Comment #4 from Xiaoming Shi <xiaoming@cs.wisc.edu> 2011-02-03 14:48:07 EST ---
Hi Robert,

I find that this similar bug can be found in other Apache projects:

./openwebbeans-1.0.0/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
line:86
./tiles-2.2.2/src/tiles-el/src/main/java/org/apache/tiles/el/JspExpressionFactoryFactory.java
line:61






(In reply to comment #0)
> Tomcat version 6.0.16 trunk (and earlier)
> 
> PageContextImpl.java has:
> public static Object proprietaryEvaluate()
> that does a:
> final ExpressionFactory exprFactory = JspFactory.getDefaultFactory().get
> JspApplicationContext(pageContext.getServletContext()).getExpressionFactory();
> 
> Our benchmarking of pages using large amounts of EL-expression shows this turns
> into a bottleneck due to the fact that JspFactory.getDefaultFactory() is
> synchronized.
> 
> The bug is very similar to bug #41558
> 
> I have a patch that fixes the issue, coming up...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message