struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Ying <liying.cn.2...@gmail.com>
Subject Re: slow request/response may be because of validation/conversion
Date Tue, 11 Oct 2011 05:04:57 GMT
I think conversion and validation should not be turned off.

The [conversion] convert http parameters (which is String) to the real
data type so your action can accept.

The [validation] check the parameters if they a valid.

And also, normally, conversion and validation should not take too much time.

The log you showed to us start at
2011-10-10 10:55:42,187
and finished at
2011-10-10 10:55:42,393

So, it only cost 200 ms.

I think you need printout more debug info, and find out where is the
real bottle neck.



And, as Carl said, the setting of [struts.devMode] can make Struts2 slow.
[it has a significant impact on performance, since the entire
configuration will be reloaded on every request]

Try turn it off and see what happens.

This page may help:
http://struts.apache.org/2.x/docs/devmode.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message