• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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"
 
A wop bop a lu bop a womp bam boom! Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic