Chris,

I just managed to get a run in OptimizeIt and 95% of the time is being
spent in java.lang.reflect.Array.newInstance(). Along with the fact
that there are 10-20 getParameter calls for each control does this
suggest anything to anybody ? The pattern seems to be:

Get the control value from the method in the action
Call getParameter on the action a few times very quickly
Do something else that we are not logging, sometimes for a second or
more.
Get the next control value
etc...

Any ideas as to how we can solve this ?

BTW, the reason we are using parameter aware is that we have input
controls inside an iterator tag and we need to be able to get the
values for each of the controls when the form is submitted (and
display them if the same page is re-displayed). If there is another
recommended way of doing this I would be interested in finding out.
What would be really cool is if webwork supported indexed properties
(a little used feature of Java beans) on actions but I can't see this
documented anywhere. Should this be a feature request ?

Thursday, June 20, 2002, 10:52:24 PM, you wrote:

CM> Have you tried with Tomcat 4.0.4 and/or 4.1.5, or even better, a different
CM> servlet container (Orion, Resin, ...)? There have been changes in the latest
CM> builds of Tomcat that can provide large performance improvements in many
CM> circumstances.

CM> Also, it sounds like you've done some profiling - where is the majority of
CM> the time being spent?

CM> Note that I'm not trying to discount the possibility of this being a WW
CM> issue, just trying to help narrow down the source of the problem.

CM> Regards,
CM> Chris

>> We have an admittedly complex JSP page that is taking between 20 and
>> 30 seconds to load, even after a first view. There are 3 actions on
>> the page in addition to the calling action but each of them is taking
>> 20-30 milliseconds to run. There appear to be a large number of calls
>> to the getParameter() method on the main action for each control on
>> the page.
>>
>> Any ideas ?
>>
>> Jboss 3.0 with Tomcat 4.0.3
>> Webwork 1.1
>> Windows 2000 Professional
>>
>> --
>>
>> regards,
>> Peter Kelley
>>
>> MoveIt Pty Ltd
>>
>> "If you want to build a ship, don't drum up the men to
>> gather wood, divide the work and give orders. Instead,
>> teach them to yearn for the vast and endless sea."
>> - Saint-Exupery
>>
>>
>>
>> -------------------------------------------------------
>>                    Bringing you mounds of caffeinated joy
>>                    >>>     http://thinkgeek.com/sf    <<<






CM> -------------------------------------------------------
CM>                    Bringing you mounds of caffeinated joy
CM>                    >>>     http://thinkgeek.com/sf    <<<

CM> _______________________________________________
CM> Webwork-user mailing list
CM> [EMAIL PROTECTED]
CM> https://lists.sourceforge.net/lists/listinfo/webwork-user


-- 

regards,
Peter Kelley

MoveIt Pty Ltd    

"If you want to build a ship, don't drum up the men to
gather wood, divide the work and give orders. Instead, 
teach them to yearn for the vast and endless sea."
- Saint-Exupery



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to