if I run 100 user request through Jmeter 1 by 1, then my average response time is 2+ seconds, but if I run 100 concurrent user through Jmeter, then my average response time was around 4 seconds. This makes me worried and confused
My Blog SCJP 5 SCWCD 5
Himanshu Gupta wrote:
if I run 100 user request through Jmeter 1 by 1, then my average response time is 2+ seconds, but if I run 100 concurrent user through Jmeter, then my average response time was around 4 seconds. This makes me worried and confused
When you run one by run do you send the other request just after the first one or you wait to get the results of the previous request?
When you are running 100 concurrent threads you are increasing the load on the server. The request flood comes and server starts handling them. When it is one by one the server gets more time to process the 100 request.
http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
steve souza wrote:Being as your start and stop times are local variables in TargetPerformance your code is thread safe. Why would you be surprised that 100 simultaneous users would be slower than 1 sequential one. I would expect that. You should get an idea about this being correct simply by timing with a wall clock the total time of your tests and dividing by 100 to get average time.
Having said that I would use JAMon (or other tool of your choice) to do the monitoring. It is much more flexible. It can easily monitor your business methods (MonitorFactory.start("doKPI001()") and do a lot more than that such as monitor your jdbc, page hits, ejb calls without changing your code at all. And for this reason it allows you to monitor in production as well as dev which is where your problems are likely to occur.
In fact I just made a release today that also lets your monitor your unix/linux scripts with jamon by calling the unix scripts I provide such as jstart.sh/jstop.sh and jadd.sh (adds an arbitrary value).
Steve - www.jamonapi.com
Don't get me started about those stupid light bulbs. |