Should the variable "pairing" in org/apache/jmeter/threads/TestCompiler.java be 
synchronized ?
 
I am evaluating JMeter as a stress tool to test Tomcat. I configurated 200 threads,
each thread repeated 30 times. The test plan was run in an endless while loop.
After a while (usually within half an hour), the test hangs.
 
Furthur investigation revealed that the state of the variable "pairing" was corrupted 
by
concurrent access and modification by multiple threads.
 
I modified the line 
private static pairing = new HashSet();
to 
private static pairing = Collections.synchronizedSet(new HashSet());
 
The problem disappeared with the change. The test lasted for more than 24 hours before
I interruped it.
 
Thanks,
June Zhong

Reply via email to