wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Load testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Load testing" Watch "Load testing" New topic

Load testing

Eric Waite

Joined: Mar 31, 2003
Posts: 12
I am writing a loadtester for our application, and I am testing against IIS/Tomcat versus Apache webserver/Tomcat.
I am threading connections to the webserver by opening a socket and writing to the outputstream.

Socket server = .....
OutputStream toServer = server.getOutputStream();

My question is probably more on the webserver side, is this an appropriate way to handle sending requests to a webserver? If I create a multi-threaded application and send 500 different requests using sockets, is this the same as 500 client browser requests, as far as the webserver is concerned?

- Eric
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12676
Much better to use a toolkit that really simulates a browser. I like HttpClient from the Apache commons project. With a little work you can simulate more complex interactions. Since Httpclient handles cookies you can use session logic.


Java Resources at www.wbrogden.com
Eric Waite

Joined: Mar 31, 2003
Posts: 12
I had issues with most of the tools and handling applets that send serialized objects back and forth to the server.
I agree. Here's the link: http://aspose.com/file-tools
subject: Load testing
Similar Threads
Servlet Testing
Tomcat and the Socket class
fix the sockets used by axis2 clients
Networking performance questions
Lost Session at JWSP-Client