• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

stress test a session based web app

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been assigned the task of stress testing a java web app that maintains a session. What is the best way to simulate a heavy load of users to a session based site? In a cheap manner of couse.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We use ApacheBench to stress-test our webapps. It's included with Apache, so it's free, but documentation is minimal. Assuming you're using Apache, you can find ApacheBench in /apache1.3.x/bin. ApacheBench basically just requests a webpage a specified number of times, with a specified number of concurrent requests. It calculates the requests-per-second the webapp can satisfy, etc.
ApacheBench is ignorant of sessions, but it can pass a cookie back to the webserver. I don't know about other webservers, but WebLogic uses a cookie called "WebLogicSession" which identifies the user session. Here's an example (note the location of double-quotes, which is very important):
ab -C WebLogicSession="12345, etc., etc." -n 1024 -c 64 "http://www.foo.com"
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic