Hi Zheng,

Have you profiled your application? Are you sure it is OGNL that makes your
application slow?

>From my experience it is not so slow. At least I have not found it too be a
bottleneck in my application. Not yet :-).

What is really slow in WebWork/Struts2 is jsp tags like, textfield, radio,
anchor, and other which are using FreeMarker templates.

If it is your case, you could make it faster, you have to extract templates
out of webwork.jar (in your case probably struts.jar) and put them in, for
example, WEB-INF/templates directory.
There is a page on WebWork Wiki about it:
http://wiki.opensymphony.com/display/WW/Performance+Tuning

I am not using Struts2 yet, but I believe most of the tips will work for
Struts2.

One more thing that could make application slower is when resource bundles
are constantly reloaded. It is good for dev but not acceptable for
production. Check in struts property like: webwork.i18n.reload=false


Best regards
Vlad



Shuai Zheng wrote:
> 
> Dear All,
> 
> I am using struts 2.0.6, but honestly the performance is very bad (not
> need
> to think about scalability), to speed to load a simple page is much slower
> than pure JSP (I haven't compared with struts 1). To refresh one page it
> is
> 3-5 seconds with only one user. The profiler tells me the OGNL is the
> bottleneck.
> 
> I notice that there are some complains on OGNL about the performance
> already, may I know any other way to replace OGNL with anything else to
> get
> a faster speed? Currently the speed is not acceptable for production.
> 
> Regards,
> 
> Zheng Shuai
> 
> 

-- 
View this message in context: 
http://www.nabble.com/The-performance-issue-about-OGNL-tf3291137.html#a9157447
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to