You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/08/13 14:59:07 UTC
DO NOT REPLY [Bug 19614] -
Poor performance under load
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19614>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19614
Poor performance under load
------- Additional Comments From dirk.verbeeck@pandora.be 2003-08-13 12:59 -------
In my tests notifyAll() doesn't have a mayor impact.
Using notify() would require other changes as well.
(The thread that woke up should notify the next thread after getting its object)
I only removed the "synchronized" from the borrowObject method.
Performance now much better.
See also the results from the new
org.apache.commons.pool.performance.PerformanceTest
This test uses the SleepingObjectFactory (includes penalty for heavy operations)
makeObject 500ms
destroyObject 250ms
validateObject 30ms
activateObject 10ms
passivateObject 10ms