Paul,

Are you using the CVS version or the released version? I think that the CVS version contains many improvements.

Secondly, ValueStack is thread local, so there shouldn't be any thread contention (from my limited understanding of it).

To get the best performance from the valuestack, ensure that you are using objects at the top of the stack as much as possible, so that you don't have to search back through the stack.

Also - what JVM are you using? You will see drastic improvements with the 1.4 JVMs.

Cheers,
Scott

Paul Snively wrote:
Gentlemen,

We're in the midst of evaluating WebWork for a redesign of our site, and
have cobbled together a simple demo that consists of a form that takes
either an integer or a string, an action that loads an object based on the
input using Hibernate, and a page that displays the properties of the loaded
results.

When we have issued the same request many times to warm up the JVM JIT and
ensure that the object is in Hibernate's cache, we're still seeing
round-trip results on the order of ~600 milliseconds under load of 10
simultaneous threads. When we examine the logs, we find that the time from
findValue() of the first property on the page to the last is ~411
milliseconds, for 57 uses of the property tag. The usage form is quite
simple:

<ww:property value="product">
  <ww:property value="serialNumber"/>
  <ww:property value="quantity"/>
  ...
</ww:property>

It's also interesting to note that on a previous, single-threaded run, I saw
at least one timing from first findValue() to last of only 45 milliseconds.
So it would appear, at first blush, that ValueStack.findValue() suffers from
nasty thread contention.

I wonder if anyone on the team could comment, and in particular, what the
status of some of the performance improvements to ValueStack.findValue()
are? Is there now a branch with these improvements, or can the developer who
implemented/is implementing them please tell us how to integrate them? 45
milliseconds for 57 findValue()s is acceptable; 411 is not. Any advice as to
how to proceed would be most welcome.

Many thanks and best regards,
Paul Snively



-------------------------------------------------------
This SF.net email is sponsored by: The Sourceforge Network Survey
Take Our Survey and You Could Win a $500 Gift Certificate!
http://ugamsolutions.com/psurvey/osdn/SourceForge/index_sourceforge.htm
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

--

ATLASSIAN - http://www.atlassian.com
Expert J2EE Software, Services and Support
-------------------------------------------------------
Need a simple, powerful way to track and manage issues?
Try JIRA - http://www.atlassian.com/software/jira



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to