简体   繁体   中英

Mongodump utility raise SocketException

When I try to backup my database using mongodump utility it raises the next exception:

2014-09-02T14:33:00.883+0400 Socket recv() errno:10055 An operation on a socket could not be performed because the system lacked sufficient buffer space or beca use a queue was full. 127.0.0.1:27017

2014-09-02T14:33:00.883+0400 SocketException: remote: 127.0.0.1:27017 error: 9001 socket exception [RECV_ERROR] server [127.0.0.1:27017] assertion: 16465 recv failed while exhausting cursor

MongoDB version: 2.6.1 OS: Windows Server 32-bit

From what I've found on MSDN it's a Windows problem

When you try to connect from TCP ports greater than 5000 you receive the error 'WSAENOBUFS (10055)' Print Print Email Email

And the solution quoted from the Windows Help Center is:

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:

  • Start Registry Editor.
  • Locate the following subkey in the registry, and then click Parameters:

    HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters

  • 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)

  • Exit Registry Editor, and then restart the computer.

You can find more details about the issue and the detailed description of the solution by going to the Windows Support Center

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM