Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Virtual machines display as invalid in vCenter Server

Symptoms

  • Virtual machines display as invalid in vCenter Server
  • The command service mgmt-vmware restart fails to stop the management agents
  • The command vmware-cmd -l returns the error:


    PANIC: SyncWaitQ: The system limit on the total number of open files has been reached
     

  • The command ps -auxwww shows a large amount of SSHD processes running

Resolution

This issue may occur if SSHD is running too many processes.
 
To resolve this issue, determine what is causing SSHD to spawn too many processes and kill the SSHD processes: 
  1. Check how many SSHD processes are running with the command:

    lsof | grep sshd -c


  2. Check how many SSHD connections are logged with the command:

    grep "Connection from" message* | grep sshd -c

  3. Determine which IPs are causing SSHD connections with the command:

    grep "Connection from" message* | less

  4. Based on the output from Step 3, look up the IP that is causing the SSHD connections with the command:

    nslookup  xxx.xxx.xxx.xxx 

  5. To kill all SSHD processes, run this command.

    killall sshd

  6. The command in step 5 kills all current SSH sessions onto this ESX host. After you run the command, log into the ESX host using KVM or direct access to the console.
  7. Restart the management agents. For more information, see Restarting the Management agents on an ESX or ESXi Server (1003490).

Update History

01/21/2010 - Added step 6

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback


Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
Actions