Mitul Parekh
Mitul Parekh

Reputation: 151

How to Solve the ERROR: java.net.ConnectException: Connection timed out: connect in jmeter

i set up all the things Your setup at client and server side is correct.

But you have not mentioned opening of port # 4444. So it is most probably the cause of issue.

In order to make it work, Your port#4444 should be visible to JMeter client machine.

To verify if it is visible or not. you can use..

http://www.canyouseeme.org/ http://portchecker.co/ If it is not visible from Client machine, then you will need to open it. Visit these links to learn how to open port.

http://www.wikihow.com/Open-Ports or you may use following from command line

now i run the jmeter for cpu testing but ERROR: java.net.ConnectException: Connection timed out: connect in jmeter

Upvotes: 0

Views: 1368

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

From what I can figure out from your question you're trying to use JMeter with PerfMon Metrics Collector in order to check CPU usage while your test is running.

In order to get this up and running your need to:

  1. Install and launch PerfMon Server Agent on the server you want to monitor
  2. Verify the connectivity between the machine where PerfMon Server Agent is running and the machine where PerfMon Metrics Collector is located by trying to send test command using telnet or equivalent. You should see Yep message as the response.

    JMeter Test PerfMon

    If you see Yep message in the terminal - you're good to go.

    If not - you need to ensure that you open port 4444 for incoming TCP and/or UDP traffic in your operating system firewall. If your server is running in i.e. Amazon Cloud you'll additionally need to open the port in Security Groups. If you're not capable of doing this yourself - contact your network administrator or DevOPS or whoever is managing the infrastructure.

More information: How to Monitor Your Server Health & Performance During a JMeter Load Test

Upvotes: 1

Related Questions