Don't now if this is current because I'm using an old struts2 release but this has helped a lot reducing my cpu & memory usage :

freemarker.template.Configuration fmc = (freemarker .template .Configuration )ServletActionContext .getServletContext ().getAttribute(FreemarkerManager.CONFIG_SERVLET_CONTEXT_KEY);
        if (fmc != null) {
((freemarker .ext.beans.BeansWrapper)fmc.getObjectWrapper()).setUseCache(true);
        }




Il giorno 18/set/08, alle ore 21:11, sajanv007 ha scritto:


There is huge performance issue and CPU hogging with Struts2 tag , this was observed while rendering JSP. These are some performance results obtained

Strut 2 Tag - With all performance tuning applied as per Struts 2
documentation - Freemarker caching etc...
Load Runner Tool
40 users
900 hits per second
10 transaction per second

Results
CPU utilization 90%
Response 3.5 sec

Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label,
s:text,s:textfield,s:hidden,s:param)
40 users
900 hits per second
15 transaction per second

Results
CPU utilization 70%
Response 2.0 sec

Some where down the line Struts 2 tag are very cpu hungry , to people to
adopt to strut2 framework cpu utilization should be optimized .


Did anybody come across on how to over come this problem

--
View this message in context: 
http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Ing. Andrea Vettori
Consulente per l'Information Technology


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to