Monitor number of threads JMeter able to create

489 views
Skip to first unread message

Manoj KS

unread,
Aug 19, 2014, 12:18:22 PM8/19/14
to jmeter-...@googlegroups.com
Hello Everyone,

As part of some tests, I am creating around 1000 threads in JMeter. The issue is I am not able to see few of the requests in my Application logs around 200 requests

Server  - Wildfly

I am analyzing whether JMeter is able to create those many threads or whether Wildfly is able to handle those many requests

Help me how can I see how many connections JMeter is able to create through some monitors or logs

Regards,
Manoj Kapuganti

gli...@gmail.com

unread,
Aug 20, 2014, 6:17:56 AM8/20/14
to jmeter-...@googlegroups.com
JMeter's possibility to create threads is limited by resources of single machine. If it is not enough - consider using remote testing where one JMeter master node orchestrates several slaves to produce higher load. 

In regards to 200 active threads out of 1000 defined - make sure that you provide enough loops as if the thread representing virtual user has no more work to do it is being shut down. 

You can use Ultimate Thread Group which provides easy way of defining load scenario by visual control ramp-up, ramp-down and time to hold the load with specified number of virtual users. 

If you need something like "1000 requests per second" proper ramp-up and hold the load may be not enough as 1000 concurrent threads isn't equal to 1000 requests per second. If this is what you're looking for consider using Constant Throughput Timer.

To view the number of active threads you can use Active Threads Over Time Listener 

Manoj KS

unread,
Aug 20, 2014, 2:07:25 PM8/20/14
to jmeter-...@googlegroups.com, gli...@gmail.com
Thank you for your explanation.

JMeter is showing that 1000 samples got created in Aggregate/Summary report. But as I said requests are not even reaching the server (Around 200 requests are not receiving out of 1000 requests). So what I am thinking is JMeter may not be able to create those many requests. So is there a way from log file or any other way to see that Jmeter had successfully created 1000 threads.

BTW I am using Java Request and I am getting this message for failed requests, 'Response message: Exception: java.net.ConnectException: Connection refused: connect'

Please help me

Thank you,
Manoj Kapuganti

Manoj KS

unread,
Aug 20, 2014, 2:23:21 PM8/20/14
to jmeter-...@googlegroups.com, gli...@gmail.com
Below is the stacktrace

java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at test.CustomerLookupMethod.sendCustomerLookup(CustomerLookupMethod.java:100)
at test.CustomerLookupMethod.runTest(CustomerLookupMethod.java:48)
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:191)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Unknown Source)

Thank you,
Manoj Kapuganti

gli...@gmail.com

unread,
Aug 21, 2014, 5:20:05 AM8/21/14
to jmeter-...@googlegroups.com, gli...@gmail.com
It may be limitation of your web/application server. Usually it's something like 256 maximum allowed connections. Check your backend configuration and documentation. 
Reply all
Reply to author
Forward
0 new messages