Jmeter is a server performance testing tool freely available for download at:
This tool enables web servers to be tested independent of Siteminder allowing load tests to be run and performance metrics to be obtained.
Jmeter will not work correctly if a basic authentication scheme is used on your Siteminder protected site. Likewise if a two factor authentication scheme is used Jmeter will not be able to authenticate correctly.
Creating a Jmeter test script.
A working Jmeter test script (smtest.jmx) has been attached to this document; you may modify that script or create your own using the instructions below.
- Open Jmeter using jmeter.bat or jmeter.sh located in jmeters bin folder.
- Right click on Test Plan, Select Add, Select Thread Group.
- Adjust the thread group settings to suit your personal preference.
- Enter a name for the group.
- Select how you'd like to handle errors.
- Enter the number of threads - here enter the maximum number of users you expect Siteminder to simultaneously support.
For example if you have 10,000 users but only expect 10%
to login any given time enter 1000.
- Enter a ramp-up time (the time jmeter takes to use all threads assigned).
- Enter a loop count, or select forever.
- Right click on the Thread Group just created, select Add, Select Config Element, then select HTTP request defaults.
- Enter a name for the request defaults.
- Provide the full server name
Do not use the servers IP or localhost this will not work.
- Enter the port number the webserver listens on.
- Enter http as the protocol
- Enter the path of the Siteminder protected application.
Enter / to test the website root.
- Right click on the thread group, select Add, Chose Sampler, select HTTP Request.
- Enter a name for the sampler.
- Select GET as the method
- Select redirect automatically, select use keepalive, select use multipart/for-data for HTTP POST.
There is no need to provide a web server name, port number or path, this will be inherited from the HTTP Request defaults.
- Right click on the thread group, select Add, select Config element, select HTTP Authorization manager.
- Enter a name for the object.
- Click the add button
- Enter a base URL Username and Password for a user who can access the protected site.
The base url sould be the base of the protected site for example http://www.mysever.com/protected if the protected folder is protected.
- Right click on the thread group, select add, select config element, select HTTP header manager.
- Enter a name for this object but do not add any headers to it.
- Right click on the thread group, select add, select config element, select HTTP Cookie Manager.
- Enter a name for the cookie manager.
- Select "Clear cookies each iteration"
- Select policy "rfc2109"
- Right click on the thread group, select add, select Listener, select Summary Report.
- Add any additional listeners you'd like, these listeners analyze the data returned during the test.
- Save your test plan.
Running the test
- Once you have created a test click the Run menu then select Start.
- When the test is running the thread status is displayed in the upper right hand corner of the jmeter window.
- Press CRTL + , to stop the test at any time.