Performance and scalability: J2EE Load testing from the inside
- Posted by: John Kassad
- Posted on: October 04 2004 12:23 EDT
I am on a J2EE integration project, based on JSP, and Vendor specific MVC framework.
We are now facing load test phase.
My question is the following:
- To partially validate performances, on database and message tier, we would like to generate load "from the inside".
- It means copying the scenario pageflow, and replacing all data to be fullfilled by web user, by java code generated data.
- And follow the pageflow on a java generated event (included in the jsp itself, with a timer).
This would allow database tier and page generation to be tested.
Does it sound reasonnable to you, and did you already do something like this ?
You might want to take a look at JUnitPerf for whitebox performance and load testing. You can leverage your existing JUnit tests into load and performance tests. For blackbox load and performance you might want to look at JMeter.
Just some ideas to additionally consider...
I recommend The Grinder, available at http://grinder.sourceforge.net.
You can record the workflows with a browser walking through Grinder's TCPProxy, and then you can replay it as many times as you wish. Of course you can substitue parameters. All the scripts that are generated are in Jython.
To test from the 'outside', you can use at least two different tools:
. Mercury Load Runner
. JMeter (this one is free).
To test from the 'inside' you could check JUnit.