LoadControl TestServlet
call the servlet with http://localhost:8788/cibetJMeter/?loops=100&test=calc¶m2=100
where 'test' is the name of one of the test methods
and 'loops' is the number of loops that are executed within the method
and 'param2' is used only in some methods
Test methods
Setpoint SP1-servletFilter
calc - executes a Math calculation in a loop
calc2 - same as calc, but irregularly sleeps before looping. This allows different offsets of multi threaded requests. param2 is the sleep time in ms
io - writes into a file in a loop. Each thread writes into an own file
ioLog - an info message is written with log4j in a loop. On each loop, the thread sleeps for param2 ms.
ioLogLocal - same as io, but sleeps in each loop for param2 ms
mem - a String is added to a list in a loop
mem2 - a long String is added to a list in a loop. In each loop some elements of the list are replaced as food for garbage collection
Synchronized:
syncCalc - same as calc, but as synchronized method
syncIo - same as calc, but as synchronized method
calcSync - replaces a value in a synchronized map in a loop
calcSync2 - arbitrarily either calls calcSync or increases a counter depending on param2 which must be between 0 and 1. If param2 = 0,
always the counter is increased, if param2 = 1 always calcSync is called.
ioSync - an info message is written with log4j in a loop
ioSync2 - arbitrarily either calls ioSync or writes into a file in a loop depending on param2 which must be between 0 and 1. If param2 = 0,
always writes into a file, if param2 = 1 always ioSync is called. Each thread has an own file.
Setpoint SP2-javaMethod
cibetCalc - like calc
cibetIo - like io
cibetMem - like mem
cibetMem2 - like mem2
cibetCalcSync - like calcSync
cibetIoSync - like ioSync
syncCibetCalc - like cibetCalc but synchronized
syncCibetIo - like cibetIo but synchronized
Setpoint SP2-javaMethod + SP4-jpa
cibetSelect - Executes a JPA SELECT query on a database table
Setpoint SP3-ejb
ejbCalc - executes calc
ejbIo - executes io
ejbInsert - Executes a JPA INSERT query in a loop
Setpoint SP3-ejb + SP4-jpa
ejbSelect - Executes a JPA SELECT query on a database table
Setpoint SP2-javaMethod + SP3-ejb
ejbCibetCalc - executes cibetCalc
ejbCibetIo - executes cibetIo
Setpoint SP2-javaMethod + SP3-ejb + Setpoint SP4-jpa
ejbCibetSelect - executes ejbSelect