Oracle 5.0 Reference Manual page 2969

Table of Contents

Advertisement

default range of port numbers depends on the version of Windows, with a more limited number of ports
in older versions:
• Windows through Server 2003: Ports in range 1025–5000
• Windows Vista, Server 2008, and newer: Ports in range 49152–65535
With a small stack of available TCP ports (5000) and a high number of TCP ports being open and
closed over a short period of time along with the
running out of ports. There are two ways to address this problem:
• Reduce the number of TCP ports consumed quickly by investigating connection pooling or persistent
connections where possible
• Tune some settings in the Windows registry (see below)
IMPORTANT: The following procedure involves modifying the Windows registry. Before
you modify the registry, make sure to back it up and make sure that you understand how
to restore the registry if a problem occurs. For information about how to back up, restore,
and edit the registry, view the following article in the Microsoft Knowledge Base:
support.microsoft.com/kb/256986/EN-US/.
1. Start Registry Editor (Regedt32.exe).
2. Locate the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
3. On the
Edit
Value Name: MaxUserPort
Data Type: REG_DWORD
Value: 65534
This sets the number of ephemeral ports available to any user. The valid range is between 5000
and 65534 (decimal). The default value is 0x1388 (5000 decimal).
4. On the
Edit
Value Name: TcpTimedWaitDelay
Data Type: REG_DWORD
Value: 30
This sets the number of seconds to hold a TCP port connection in
The valid range is between 0 (zero) and 300 (decimal). The default value is 0x78 (120 decimal).
5. Quit Registry Editor.
6. Reboot the machine.
Note: Undoing the above should be as simple as deleting the registry entries you've created.
C.5.2.3.
Lost connection to MySQL server
There are three likely causes for this error message.
Usually it indicates network connectivity trouble and you should check the condition of your network if
this error occurs frequently. If the error message includes "during query," this is probably the case you
are experiencing.
Sometimes the "during query" form happens when millions of rows are being sent as part of one or
more queries. If you know that this is happening, you should try increasing
from its default of 30 seconds to 60 seconds or longer, sufficient for the data transfer to complete.
Common Errors When Using MySQL Programs
menu, click
Value, and then add the following registry value:
Add
menu, click
Value, and then add the following registry value:
Add
status you have a good chance for
TIME_WAIT
2949
http://
state before closing.
TIME_WAIT
net_read_timeout
[478]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents