DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37356>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37356





------- Additional Comments From [EMAIL PROTECTED]  2006-06-09 04:48 -------
Created an attachment (id=18432)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18432&action=view)
Stress Test Framework

Here is complete working WAR application with source included that might be
useful to build a real testcase from (or any test cases that only appear under
stress).

There is a web-app side, which you can either modify my DefaultServlet or add a
new servlet to provide additional code to help trigger the problem.  It would
be worth file you building a simple interface into your Session Management
classes



There is a HTTP traffic generator based around commons-httpclient,
multi-threaded.  You can theoretically extract the WAR onto a number of client
machines and/or use the same machine thats running Tomcat.

Invokation suggestion:

$ jar -xvf TCBug37356.war
$ cd WEB-INF 
$ java -cp
classes:lib/commons-httpclient-3.0.1.jar:lib/commons-codec-1.3.jar:lib/commons-logging-1.0.4.jar:lib/log4j-1.2.13.jar
testpackage/TestClientTomcat


Places to edit:

testpackage/TestClientTomcat: Edit the defaults at the top of the class, for
URL, requests, simultaneous thread count.

TestClientTomcat#startNextThread(): just before the call to #sweepOnce() you
might need to modify requests, like every 1000 inject a HTTP request to poll
your Session manager (through the servlet) to look for problems and report.

TestClientRunnable#run(): ~around line 177~ Modify this to suit your HTTP
request setup and response parsing.


Maybe someone else could attach a cut down version of their session management
code for analying the state of TC from within.

Feel free to email me privately for any assistance with it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to