[
https://issues.apache.org/jira/browse/WW-4575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048293#comment-15048293
]
zhouyanming commented on WW-4575:
---------------------------------
Yes, here is improvements:
1. fix LocalizedTextUtil.findResourceBundle() missing from cache, the promotion
is remarkable. by the way, MessageFormat is not thread safe, so cache it with
ConcurrentMap may cause exception.
2. rewrite SecurityMemberAccess.isPackageExcluded() using string comparison
replace regex.
3. refine FreemarkerManager.buildScopesHashModel() remove synchronization on
servletContext and cache HttpSessionHashModel into request, this improvement
can apply to 2.3.16 too.
> Fix performance regression
> --------------------------
>
> Key: WW-4575
> URL: https://issues.apache.org/jira/browse/WW-4575
> Project: Struts 2
> Issue Type: Task
> Affects Versions: 2.3.20, 2.3.24
> Reporter: zhouyanming
> Fix For: 2.3.25
>
>
> I have an application run with struts2, recently I found my application
> performance downgraded if struts2 upgraded. a special use case:
> ab -n 3000 -c 150 http://localhost/login
> ||requests/second||struts2 version||
> |684|2.3.16|
> |515|2.3.18|
> |312|2.3.24|
> It's appreciatory if someon test with official example.
> I think struts2 should focus on performance improvement, make struts2 more
> configurable to deal with performance and security trade-off.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)