struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhouyanming (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4575) Fix performance regression
Date Fri, 04 Dec 2015 00:30:11 GMT

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

zhouyanming commented on WW-4575:
---------------------------------

I try to put an EmptyResourceBundle, then LocalizedTextUtil.getMessage() will be the hotspot,
you can profile it with jvisualvm, LocalizedTextUtil will call many times in one request,
so It should be simple and fast, I think struts2 is over designed with multiple class hierarchy,
the exact class level message and global messages are enough for most applications. Before
fix performance bottleneck I suggest revert LocalizedTextUtil to 2.3.16

> 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
>
> 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)

Mime
View raw message