Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

1 Address already in use: connect

Solved 1 Answers 1565 Views
1 1
While doing jmeter test am getting this error. Help me to solve this.

Thread Group

user - 50

Rmp - 0

Repeat - 1

Simple controller

      ..My page

I view the result in tree it show error in my domain  url ans in my Response data am getting this one Address already in use: connect

at Method)

at Source)

at Source)

at Source)

at Source)

at Source)

at Source)

at Source)

at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(

at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(


at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$

at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(

at org.apache.http.impl.client.DefaultRequestDirector.execute(

at org.apache.http.impl.client.AbstractHttpClient.doExecute(

at org.apache.http.impl.client.CloseableHttpClient.execute(

at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(

at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(

at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(

at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(

at org.apache.jmeter.threads.JMeterThread.processSampler(


at Source)

1 Answer

Best answer

I solved this Problem by following this website

The solution.

The default maximum number of ephemeral TCP ports is 5000 in the products that are included in the “Applies to” section. A new parameter has been added in these products. To increase the maximum number of ephemeral ports, follow these steps:

  1. Start Registry Editor.
  2. Locate the following subkey in the registry, and then click Parameters: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  3. On the Edit menu, click New, and then add the following registry entry:

Value Name: MaxUserPort

Value Type: DWORD

Value data: 65534

Valid Range: 5000-65534 (decimal)

Default: 0x1388 (5000 decimal)

Description: This parameter controls the maximum port number that is used when a program requests any available user port from the system. Typically, ephemeral (short-lived) ports are allocated between the values of 1024 and 5000 inclusive. After the release of security bulletin MS08-037, the behavior of Windows Server 2003 was changed to more closely match that of Windows Server 2008 and Windows Vista. For more information about Microsoft security bulletin MS08-037, click the following article numbers to view the articles in the Microsoft Knowledge Base:

951746 MS08-037: Description of the security update for DNS in Windows Server 2008, in Windows Server 2003, and in Windows 2000 Server (DNS server-side): July 8, 2008

951748 MS08-037: Description of the security update for DNS in Windows Server 2003, in Windows XP, and in Windows 2000 Server (client side): July 8, 2008

953230 MS08-037: Vulnerabilities in DNS could allow spoofing

Exit Registry Editor, and then restart the computer.

This seemed like it was simple, but I was not able to find the correct editable parameter in my regedit.

Here is what I did to add this parameter:

  1. Right mouse clicked on Parameters.
  2. Create a new DWORD value with name MaxUserPort
  3. Right mouse click on MaxUserPort .
  1. then enter 65534 for the Value Data field.
  2. Under the radio button selection for Base, select the Decimal radio button.
answered by (188 points)
selected by
commented by (552 points)
Thank you for providing the solution @Abhishek. I have added content from the page with reference link back to the site. In case of the site is down or the page on the site is removed/moved, we will have the solution still available.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.