Connecting to vCenter Server using the vSphere Client fails
search cancel

Connecting to vCenter Server using the vSphere Client fails

book

Article ID: 307430

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Cannot connect to vCenter Server using the vSphere Client
  • The VMware VirtualCenter Server service is running
  • You may have separate VMware or 3rd party solutions connected to the vCenter Server
  • Running the netstat -a command on vCenter Server shows a large number of CLOSE_WAIT entries
  • In the vpxd.log file, you see entries similar to:

    Note: For the default location of vCenter Server logs, see Location of vCenter Server log files (1021804).

    vpxd-19.log:2010-11-10T17:20:37.359-08:00 [10180 error 'HttpConnectionPool'] [ConnectComplete] Connect error Only one usage of each socket address (protocol/network address/port) is normally permitted.
    vpxd-19.log:2010-11-10T17:20:37.359-08:00 [10584 error 'Default' opID=4c7bcb32] [VpxdClientAdapter] Got vmacore exception: Only one usage of each socket address (protocol/network address/port) is normally permitted.


Environment

VMware vCenter Server 4.0.x
VMware vCenter Server 5.0.x

Cause

This issue occurs due to the large number of CLOSE_WAIT entries in vCenter Server.

Resolution

To resolve this issue, change the registry setting to allow more local ports.
To change the registry setting to allow more local ports:
  1. Stop the VMware VirtualCenter Server service.
  2. Open the vpxd.cfg file using a text editor.
  3. Add the following <soap> elements within the <vmacore> </vmacore> tags:

    <soap>

    <sessionTimeout>30</sessionTimeout>

    <maxSessionCount>1000</maxSessionCount>
    </soap>

  4. Change the registry setting to allow more local ports.

    To modify the registry setting:

    Note: This procedure modifies the Windows registry. Before making any registry modifications, ensure that you have a current and valid backup of the registry and the virtual machine. For more information on backing up and restoring the registry, see the Microsoft Knowledge Base article 136393.

    1. Click Start > Run, type regedit, and click OK. The Registry Editor window opens.
    2. Locate this key in the registry:

      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

    3. Right-click Parameters and click New > DWORD Value.
    4. Type MaxUserPort for Name.
    5. Right click MaxUserPort and click Modify.
    6. Type 65534 for Value, select Decimal, and then click OK.

      Note: The default value for the MaxUserPort is 5000 (Decimal).

    7. Close the Registry Editor window.

  5. Start the VMware VirtualCenter Server service.

    Note: A restart of the vCenter Server may be required for the registry changes to be applied.


Additional Information

Location of vCenter Server log files
vSphere Client を使用して vCenter Server に接続しようとすると失敗します
使用 vSphere Client 连接到 vCenter Server 失败