Development machine:
XP Professional
1 GB RAM
1,5 GB Page file
My app uses Winsock and is a client/server application.
It is working fine until I set system setting
Performance Options -> Advanced -> Memory usage -> System cache
so it uses more memory for system cache..
If I do this my client app has a lot of problems with WSAENOBUFF error
when connecting to server, I cannot figure out what could be the problem.
1. There is a lot of memory available. Only around 400 MB is in use when
I get WSAENOBUFF
2. I have opened only around 20-30 sockets
I have tried fiddling with a lot of registry settings and have this
configuration at the moment
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"DataBasePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
64,00,72,00,69,00,76,00,65,00,72,00,73,00,5c,00,65,00,74,00,63,00,00,00
"NameServer"=""
"ForwardBroadcasts"=dword:00000000
"IPEnableRouter"=dword:00000000
"Domain"=""
"Hostname"="haris"
"SearchList"=""
"UseDomainNameDevolution"=dword:00000001
"EnableICMPRedirect"=dword:00000001
"DeadGWDetectDefault"=dword:00000001
"DontAddDefaultGatewayDefault"=dword:00000000
"EnableSecurityFilters"=dword:00000000
"ReservedPorts"=hex(7):31,00,34,00,33,00,33,00,2d,00,31,00,34,00,33,00,34,00,\
00,00,00,00
"MaxUserPort"=dword:0000fffe
"Tcp1323"=dword:00000003
"TcpWindowSize"=dword:0001fe78
"GlobalMaxTcpWindowSize"=dword:0001fe78
"TcpNumConnections "=dword:0000fffe
"EnablePMTUDiscovery"=dword:00000001
"EnablePMTUBHDetect"=dword:00000000
"SackOpts"=dword:00000001
"DefaultTTL"=dword:00000040
"TcpMaxDupAcks"=dword:00000002
"Tcp1323Opts"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters\NdisWanIp]
"LLInterface"="WANARP"
"IpConfig"=hex(7):54,00,63,00,70,00,69,00,70,00,5c,00,50,00,61,00,72,00,61,00,\
6d,00,65,00,74,00,65,00,72,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,66,\
00,61,00,63,00,65,00,73,00,5c,00,7b,00,45,00,33,00,33,00,38,00,43,00,43,00,\
42,00,39,00,2d,00,31,00,35,00,34,00,32,00,2d,00,34,00,44,00,37,00,35,00,2d,\
00,39,00,45,00,38,00,43,00,2d,00,41,00,42,00,39,00,43,00,30,00,45,00,36,00,\
35,00,42,00,39,00,42,00,37,00,7d,00,00,00,54,00,63,00,70,00,69,00,70,00,5c,\
00,50,00,61,00,72,00,61,00,6d,00,65,00,74,00,65,00,72,00,73,00,5c,00,49,00,\
6e,00,74,00,65,00,72,00,66,00,61,00,63,00,65,00,73,00,5c,00,7b,00,39,00,45,\
00,46,00,46,00,41,00,36,00,32,00,32,00,2d,00,46,00,33,00,46,00,41,00,2d,00,\
34,00,43,00,37,00,44,00,2d,00,39,00,46,00,42,00,30,00,2d,00,38,00,44,00,38,\
00,39,00,44,00,34,00,30,00,41,00,42,00,31,00,44,00,37,00,7d,00,00,00,00,00
"NumInterfaces"=dword:00000002
"IpInterfaces"=hex:b9,cc,38,e3,42,15,75,4d,9e,8c,ab,9c,0e,65,b9,b7,22,a6,ff,9e,\
fa,f3,7d,4c,9f,b0,8d,89,d4,0a,b1,d7
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters\{A4B4E2AD-1E06-4700-9904-1DD64D7BB8FB}]
"LLInterface"=""
"IpConfig"=hex(7):54,00,63,00,70,00,69,00,70,00,5c,00,50,00,61,00,72,00,61,00,\
6d,00,65,00,74,00,65,00,72,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,66,\
00,61,00,63,00,65,00,73,00,5c,00,7b,00,41,00,34,00,42,00,34,00,45,00,32,00,\
41,00,44,00,2d,00,31,00,45,00,30,00,36,00,2d,00,34,00,37,00,30,00,30,00,2d,\
00,39,00,39,00,30,00,34,00,2d,00,31,00,44,00,44,00,36,00,34,00,44,00,37,00,\
42,00,42,00,38,00,46,00,42,00,7d,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters\{AAFCF901-C507-4D3B-9230-591B29AA59DF}]
"LLInterface"=""
"IpConfig"=hex(7):54,00,63,00,70,00,69,00,70,00,5c,00,50,00,61,00,72,00,61,00,\
6d,00,65,00,74,00,65,00,72,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,66,\
00,61,00,63,00,65,00,73,00,5c,00,7b,00,41,00,41,00,46,00,43,00,46,00,39,00,\
30,00,31,00,2d,00,43,00,35,00,30,00,37,00,2d,00,34,00,44,00,33,00,42,00,2d,\
00,39,00,32,00,33,00,30,00,2d,00,35,00,39,00,31,00,42,00,32,00,39,00,41,00,\
41,00,35,00,39,00,44,00,46,00,7d,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DNSRegisteredAdapters]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{9EFFA622-F3FA-4C7D-9FB0-8D89D40AB1D7}]
"UseZeroBroadcast"=dword:00000000
"EnableDHCP"=dword:00000000
"IPAddress"=hex(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"SubnetMask"=hex(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00
"EnableDeadGWDetect"=dword:00000001
"DontAddDefaultGateway"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{A4B4E2AD-1E06-4700-9904-1DD64D7BB8FB}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000000
"IPAddress"=hex(7):31,00,30,00,2e,00,30,00,2e,00,30,00,2e,00,31,00,34,00,30,00,\
00,00,00,00
"SubnetMask"=hex(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,32,00,35,\
00,35,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):31,00,30,00,2e,00,30,00,2e,00,30,00,2e,00,31,00,33,00,\
38,00,00,00,00,00
"DefaultGatewayMetric"=hex(7):30,00,00,00,00,00
"NameServer"="10.0.0.138"
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,\
32,00,00,00,00,00
"DhcpClassIdBin"=hex:
"DhcpServer"="255.255.255.255"
"Lease"=dword:00000e10
"LeaseObtainedTime"=dword:453516c9
"T1"=dword:45351dd1
"T2"=dword:45352317
"LeaseTerminatesTime"=dword:453524d9
"IPAutoconfigurationAddress"="0.0.0.0"
"IPAutoconfigurationMask"="255.255.0.0"
"IPAutoconfigurationSeed"=dword:00000000
"AddressType"=dword:00000000
"MTU"=dword:000005d4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{AAFCF901-C507-4D3B-9230-591B29AA59DF}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000001
"IPAddress"=hex(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"SubnetMask"=hex(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00
"DefaultGatewayMetric"=hex(7):00,00
"NameServer"=""
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,\
32,00,00,00,00,00
"DhcpClassIdBin"=hex:
"DhcpIPAddress"="10.0.0.5"
"DhcpSubnetMask"="255.255.255.0"
"DhcpServer"="10.0.0.138"
"Lease"=dword:00001c20
"LeaseObtainedTime"=dword:452fb5f1
"T1"=dword:452fc401
"T2"=dword:452fce8d
"LeaseTerminatesTime"=dword:452fd211
"IPAutoconfigurationAddress"="0.0.0.0"
"IPAutoconfigurationMask"="255.255.0.0"
"IPAutoconfigurationSeed"=dword:00000000
"AddressType"=dword:00000000
"DhcpRetryTime"=dword:00000e10
"DhcpRetryStatus"=dword:00000000
"DhcpNameServer"="10.0.0.138 10.0.0.138"
"DhcpDefaultGateway"=hex(7):31,00,30,00,2e,00,30,00,2e,00,30,00,2e,00,31,00,33,\
00,38,00,00,00,00,00
"DhcpDomain"="lan"
"DhcpSubnetMaskOpt"=hex(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,32,\
00,35,00,35,00,2e,00,30,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{E338CCB9-1542-4D75-9E8C-AB9C0E65B9B7}]
"UseZeroBroadcast"=dword:00000000
"EnableDHCP"=dword:00000000
"IPAddress"=hex(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"SubnetMask"=hex(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00
"EnableDeadGWDetect"=dword:00000001
"DontAddDefaultGateway"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Winsock]
"UseDelayedAcceptance"=dword:00000000
"HelperDllName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,77,00,73,00,68,00,74,00,63,00,70,00,69,00,70,00,2e,00,64,00,6c,00,6c,00,\
00,00
"MaxSockAddrLength"=dword:00000010
"MinSockAddrLength"=dword:00000010
"Mapping"=hex:0b,00,00,00,03,00,00,00,02,00,00,00,01,00,00,00,06,00,00,00,02,\
00,00,00,01,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,06,00,00,00,00,00,\
00,00,00,00,00,00,06,00,00,00,00,00,00,00,01,00,00,00,06,00,00,00,02,00,00,\
00,02,00,00,00,11,00,00,00,02,00,00,00,02,00,00,00,00,00,00,00,02,00,00,00,\
00,00,00,00,11,00,00,00,00,00,00,00,00,00,00,00,11,00,00,00,00,00,00,00,02,\
00,00,00,11,00,00,00,02,00,00,00,03,00,00,00,00,00,00,00
TIA
My setting in registry is
>> "MaxUserPort"=dword:0000fffe
Also, in the same context when
>> Performance Options -> Advanced -> Memory usage -> System cache,
I discovered problems with other software which uses internet.
For example,
1. Internet explorer 6.0 fails to load a web page occasionally, or it
doesn't load some of the images contained in the web page.. I assume the
problems could be related
2. The above is also true for Firefox 1.5
3. Globalscape's CuteFTP Professional occasionally fails when making the
data connection to server
150 Opening ASCII mode data connection for file list port
fails with 10055 while connect to port 21 for control connection is
always ok
TIA for any other suggestions
"Haris Zukanovi?" <ha...@ask.me> wrote in message
news:%23iL4ZyN...@TK2MSFTNGP06.phx.gbl...
"Arkady Frenkel" <ark...@hotmailxdotx.com> wrote in message
news:%23QgOpYU...@TK2MSFTNGP06.phx.gbl...
"Arkady Frenkel" <ark...@hotmailxdotx.com> wrote in message
news:OasKgwUC...@TK2MSFTNGP02.phx.gbl...
I discovered that the programs which got 10055's used large send a recv
buffers. Probably that was the source of problems, since these should be
in NonPagedPool as far as I know
Anyway, thanx once more
"Haris Zukanovi?" <ha...@ask.me> wrote in message
news:OV3SpJiC...@TK2MSFTNGP04.phx.gbl...
> The other only reason is lack of non-pageable memory in kernel mode
I have exactly the same problem. The application starts giving 10055
WSAENOBUFF errors and it's obviously because of running low non-paged
memory (perfmon shows this clearly). There are on the order of 15
network connections and there are no reconnections (and thus reaching a
limit of 5000 anonymouse socket - KB 196271).
I have no idea why non-paged memory is leaking. This does not happen on
Windows 2003 Server systems where the application runs fine with even
greater number of connections (40+). On Windows XP the problem also
depends on certain unknown factors - Pool Nonpaged Bytes may start
increasing soon after application start, or may be stable for 24 and
more hours and start climbing up after that. It is system's Pool
Nonpaged Bytes that increase (Memory\Pool Nonpaged Bytes performance
counter), while the counter of the application process remains
constant.
Roman
"Roman Ryl..." <ryl...@gmail.com> wrote in message
news:1165125157.4...@73g2000cwn.googlegroups.com...
> But 15 is very low number, what happen if you open 15 IEs , just a hint
In my case the difference from IE is that all these 15 connections are
fetching a lot of data. These are video streams coming from IP cameras
such as 25 frames per second, 30 kilobytes per frame. 15 cameras, 24/7
activity.
Roman
"Roman Ryl..." <ryl...@gmail.com> wrote in message
news:1165163299.5...@j44g2000cwa.googlegroups.com...