I'm feeling stupid again (these last two weeks have been tough this way), so I hope someone can help me out.
After a frustrating day or two, I've decided maybe I really should focus on load testing my tomcat *application*, which I can protect by configuring IIS correctly once I know the appropriate limits, rather than load testing the whole domain controller - IIS - tomcat chain, which corporate IT has to worry about protecting from the outside world and *shouldn't* have to worry about protecting from employees logged into the corporate network.
So, I have tomcat running on an internal server with an AJP connector. I want to convert my existing JMeter Test Plan from using HTTPRequestSamplers to using AJPSamplers. Should be easy, right?
But if I create a new Thread Group from scratch in the JMeter UI and add an AJPSampler to it, JMeter doesn't seem to run it at all.
And if I hand-edit the Test Plan file using Notepad++, changing the sampler element name and the class attributes of the element for an existing sampler, the sampler fails with a null response.
In both cases, I'm getting the following in my JMeter log:
2011/03/23 14:59:22 ERROR - jmeter.threads.JMeterThread: java.lang.StringIndexOutOfBoundsException: String index out of range: 41099
at java.lang.String.checkBounds(Unknown Source)
at java.lang.String.<init>(Unknown Source)
at java.lang.Thread.run(Unknown Source)
What am I doing wrong? This is JMeter 2.3.2 r665936.
Any help appreciated.
posted 8 years ago
Turns out this is a bug in JMeter's AJPClient, and there is a year-old patch that evidently hasn't been merged into JMeter yet. So at least in this respect it's not my fault.
This looks like a job for .... legal tender! It says so right in this tiny ad: