• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Load testing

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();
toServer.write(request);

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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Bill
 
Eric Waite
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had issues with most of the tools and handling applets that send serialized objects back and forth to the server.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!