|
Java™ by example!
|
|
|
How do I stress test a Servlet?
Servlets that generate HTML content, that is, where applet-server interaction is not the key point, and most of the time, it isn't, can be tested by any tools generally used to measure WWW server performance. As a good free tool, use Apache JMeter. It also is capable of test-loading JDBC sources, say, to simulate back-office activity.
Doing a stress-test, make sure that testing software itself does not eat too many of web server resources -- it ideally should run on other machine. And, of course, network connection between server and sterss-tester machine should be fast (that is, not 30 hops away :-).
Further Information
Author of answer:
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|