Sometimes receive this error while running JMeter Parallel sampler.

1,470 views
Skip to first unread message

mr.ko...@gmail.com

unread,
Apr 18, 2018, 8:23:58 AM4/18/18
to jmeter-plugins
java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
    at java.util.ArrayList$Itr.next(Unknown Source)
    at org.apache.jmeter.testelement.property.PropertyIteratorImpl.next(PropertyIteratorImpl.java:41)
    at org.apache.jmeter.protocol.http.control.CookieManager.removeMatchingCookies(CookieManager.java:384)
    at org.apache.jmeter.protocol.http.control.CookieManager.add(CookieManager.java:293)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.downloadPageResources(HTTPSamplerBase.java:1354)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1657)
    at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.resultProcessing(HTTPAbstractImpl.java:525)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:536)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
    at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
    at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
    at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
    at com.blazemeter.jmeter.controller.JMeterThreadParallel.run(JMeterThreadParallel.java:60)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


It is not very often, but sometimes. It is appear when I put under parallel sampler many http samplers...

artem....@blazemeter.com

unread,
Apr 25, 2018, 8:32:55 AM4/25/18
to jmeter-plugins
Hello,

Thank you for your question, I'll investigate this issue on the next week.

Artem

среда, 18 апреля 2018 г., 15:23:58 UTC+3 пользователь mr.ko...@gmail.com написал:

Сергій Королік

unread,
Apr 25, 2018, 8:40:03 AM4/25/18
to jmeter-...@googlegroups.com
Thank you

--
You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/JzMBJzjtMxk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugins+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Artem Fedorov

unread,
Apr 28, 2018, 3:20:10 AM4/28/18
to jmeter-...@googlegroups.com
Hi,

We're released parallel plugin 0.5 with fix this problem

Thanks,
Artem

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugins+unsubscribe@googlegroups.com.

nagarjuna...@phenompeople.com

unread,
May 7, 2018, 5:39:32 AM5/7/18
to jmeter-plugins
Sill, I am facing this issue.
Thank you

To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.

artem....@blazemeter.com

unread,
May 7, 2018, 5:41:15 AM5/7/18
to jmeter-plugins
Can you share the stacktrace with this issue?

Thanks

понедельник, 7 мая 2018 г., 12:39:32 UTC+3 пользователь nagarjuna...@phenompeople.com написал:

Nagarjuna Kappurapu

unread,
May 7, 2018, 5:51:06 AM5/7/18
to jmeter-...@googlegroups.com
java.util.ConcurrentModificationException
at java.base/java.util.ArrayList$Itr.checkForComodification(Unknown Source)
at java.base/java.util.ArrayList$Itr.remove(Unknown Source)
at org.apache.jmeter.testelement.property.PropertyIteratorImpl.remove(PropertyIteratorImpl.java:47)
at org.apache.jmeter.protocol.http.control.CookieManager.removeMatchingCookies(CookieManager.java:393)
at org.apache.jmeter.protocol.http.control.CookieManager.add(CookieManager.java:293)
at org.apache.jmeter.protocol.http.control.HC4CookieHandler.addCookieFromHeader(HC4CookieHandler.java:155)
at org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader(CookieManager.java:361)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.saveConnectionCookies(HTTPHC4Impl.java:1583)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:528)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
at com.blazemeter.jmeter.controller.JMeterThreadParallel.run(JMeterThreadParallel.java:60)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)


To unsubscribe from this group and all its topics, send an email to jmeter-plugins+unsubscribe@googlegroups.com.

nagarjuna...@phenompeople.com

unread,
May 7, 2018, 5:51:40 AM5/7/18
to jmeter-plugins
Please find the stack trace as below 

java.util.ConcurrentModificationException
at java.base/java.util.ArrayList$Itr.checkForComodification(Unknown Source)
at java.base/java.util.ArrayList$Itr.remove(Unknown Source)
at org.apache.jmeter.testelement.property.PropertyIteratorImpl.remove(PropertyIteratorImpl.java:47)
at org.apache.jmeter.protocol.http.control.CookieManager.removeMatchingCookies(CookieManager.java:393)
at org.apache.jmeter.protocol.http.control.CookieManager.add(CookieManager.java:293)
at org.apache.jmeter.protocol.http.control.HC4CookieHandler.addCookieFromHeader(HC4CookieHandler.java:155)
at org.apache.jmeter.protocol.http.control.CookieManager.addCookieFromHeader(CookieManager.java:361)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.saveConnectionCookies(HTTPHC4Impl.java:1583)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:528)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
at com.blazemeter.jmeter.controller.JMeterThreadParallel.run(JMeterThreadParallel.java:60)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)


artem....@blazemeter.com

unread,
May 7, 2018, 5:57:46 AM5/7/18
to jmeter-plugins
Which Parallel plugin version do you use?

понедельник, 7 мая 2018 г., 12:41:15 UTC+3 пользователь artem....@blazemeter.com написал:

nagarjuna...@phenompeople.com

unread,
May 7, 2018, 5:59:35 AM5/7/18
to jmeter-plugins
I have used 0.5 version  only

nagarjuna...@phenompeople.com

unread,
May 7, 2018, 6:03:51 AM5/7/18
to jmeter-plugins

nagarjuna...@phenompeople.com

unread,
May 7, 2018, 6:06:29 AM5/7/18
to jmeter-plugins
and in cookie manger the cookie policy is selected as "standard" option ..

artem....@blazemeter.com

unread,
May 7, 2018, 10:39:26 AM5/7/18
to jmeter-plugins
I reproduced it.. 
I'll think how I can fix it on this week 

понедельник, 7 мая 2018 г., 13:06:29 UTC+3 пользователь nagarjuna...@phenompeople.com написал:

artem....@blazemeter.com

unread,
May 11, 2018, 4:46:36 AM5/11/18
to jmeter-plugins
Please, try version 0.6

понедельник, 7 мая 2018 г., 17:39:26 UTC+3 пользователь artem....@blazemeter.com написал:
Message has been deleted

mr.ko...@gmail.com

unread,
May 11, 2018, 6:14:30 AM5/11/18
to jmeter-plugins
Thank you Artem. In case I will receive this again I will let you know!

nagarjuna...@phenompeople.com

unread,
May 11, 2018, 7:51:30 AM5/11/18
to jmeter-plugins

Thank you for update .I have used this 0.6 version and now not facing any issue related to cookies .

But , i am facing an issue which is related throughput controller with the below steps

1.Added two throughput controllers for threads distribution in jmeter script .

2. In one throughput controller , added one  parallel controller and in another throughput controller ,not used . In this scenario ,facing an issues.

Please find the attached screenshots for errors

nagarjuna...@phenompeople.com

unread,
May 11, 2018, 8:08:12 AM5/11/18
to jmeter-plugins
I have created a sample Test plan . I am able to reproduce the mentioned issue in the above  .Please find the attached screenshot for the same


On Friday, May 11, 2018 at 5:21:30 PM UTC+5:30, nagarjuna...@phenompeople.com wrote:

artem....@blazemeter.com

unread,
May 11, 2018, 9:40:28 AM5/11/18
to jmeter-plugins
Sure, It's a parallel plugin issue. I fixed it in 0.7 and released.

The jar will be available for download from maven in a few hours

  https://search.maven.org/remotecontent?filepath=com/blazemeter/jmeter-parallel/0.7/jmeter-parallel-0.7.jar 

Thanks,
Artem
пятница, 11 мая 2018 г., 15:08:12 UTC+3 пользователь nagarjuna...@phenompeople.com написал:

termol...@gmail.com

unread,
Feb 9, 2019, 10:01:44 AM2/9/19
to jmeter-plugins
Hi Artem

I appreciate you hard work on such a useful plugin and sharing it with JMeter comminity. Unfortunately, the same issue is still reproduced, it has happened so often during a load test so that I suspect several treads were locked and such a concurrency issue provoked the test to interrupt in the middle of test run. If any details on settings are needed, let me know please. Note, the were quite many parallel controllers in the script to emulate parallel invocations of web services and resources as well. 
The version of plugin is 0.9.

The stack trace is below:

2019-02-08 10:28:22,321 ERROR o.a.j.t.ListenerNotifier: Detected problem in Listener.
java.util.ConcurrentModificationException: null
at java.util.ArrayList.writeObject(Unknown Source) ~[?:1.8.0_101]
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeObject(Unknown Source) ~[?:1.8.0_101]
at java.util.ArrayList.writeObject(Unknown Source) ~[?:1.8.0_101]
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeSerialData(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeObject0(Unknown Source) ~[?:1.8.0_101]
at java.io.ObjectOutputStream.writeObject(Unknown Source) ~[?:1.8.0_101]
at sun.rmi.server.UnicastRef.marshalValue(Unknown Source) ~[?:1.8.0_101]
at sun.rmi.server.UnicastRef.invoke(Unknown Source) ~[?:1.8.0_101]
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source) ~[?:1.8.0_101]
at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source) ~[?:1.8.0_101]
at com.sun.proxy.$Proxy20.processBatch(Unknown Source) ~[?:?]
at org.apache.jmeter.samplers.BatchSampleSender.sampleOccurred(BatchSampleSender.java:183) ~[ApacheJMeter_core.jar:5.0 r1840935]
at org.apache.jmeter.samplers.RemoteListenerWrapper.sampleOccurred(RemoteListenerWrapper.java:95) ~[ApacheJMeter_core.jar:5.0 r1840935]
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:70) [ApacheJMeter_core.jar:5.0 r1840935]
at com.blazemeter.jmeter.controller.ParallelListenerNotifier.notifyListeners(ParallelListenerNotifier.java:31) [jmeter-parallel-0.9.jar:?]
at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:980) [ApacheJMeter_core.jar:5.0 r1840935]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:569) [ApacheJMeter_core.jar:5.0 r1840935]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:486) [ApacheJMeter_core.jar:5.0 r1840935]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253) [ApacheJMeter_core.jar:5.0 r1840935]
at com.blazemeter.jmeter.controller.JMeterThreadParallel.run(JMeterThreadParallel.java:61) [jmeter-parallel-0.9.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_101]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_101]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_101] 

Thanks in advance.

Kind Regards,
Tatiana

termol...@gmail.com

unread,
Feb 9, 2019, 10:03:52 AM2/9/19
to jmeter-plugins
Additionally, the test was running in remote mode distributing load between two nodes. 

On Saturday, 9 February 2019 15:01:44 UTC, termol...@gmail.com wrote:
Hi Artem

I appreciate your hard work on such a useful plugin and sharing it with JMeter comminity. Unfortunately, the same issue is still reproduced, it has happened so often during a load test so that I suspect several treads were locked and such a concurrency issue provoked the test to interrupt in the middle of test run. If any details on settings are needed, let me know please. Note, the were quite many parallel controllers in the script to emulate parallel invocations of web services and resources as well. 

Artem Fedorov

unread,
Feb 9, 2019, 10:08:12 AM2/9/19
to jmeter-...@googlegroups.com
Hello. Could you please create a simple test plan that can reproduce this issue?

It'll help me with bug fix 

Regards 
Artem

сб, 9 февр. 2019 г., 18:03 <termol...@gmail.com>:

kd...@broadsoft.com

unread,
Jul 22, 2019, 5:47:32 AM7/22/19
to jmeter-plugins
Hi, Any update on this issue reported by @termol...@gmail.com.
We are facing the exact same issue when running two JMeter servers remotely.

Thanks in advance.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-...@googlegroups.com.

termol...@gmail.com

unread,
Jul 22, 2019, 6:00:30 AM7/22/19
to jmeter-plugins
Hi, in my case it was reproduced with a script using BlazeMeter Parallel controller when running the test remotely in the distributed test mode. The solution was to launch the test independently/manualy on each node without using the distributed test mode, and then colliding JMeter's logs after the test completed.

kd...@broadsoft.com

unread,
Jul 22, 2019, 11:25:45 AM7/22/19
to jmeter-plugins
Hi termol...@gmail.com,

I will say that is a workaround only as the main purpose of running JMeter servers from a client is not possible with BlazeMeter Parallel controller as of now. Would love to see if there is a solution to it.

BTW, are you using any tool to combine and aggregate the JMeter logs? Can you share me the tool name?

Thanks
Reply all
Reply to author
Forward
0 new messages