Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

10055 WSAENOBUFF error

42 views
Skip to first unread message

news.microsoft.com

unread,
Nov 15, 2006, 6:16:41 AM11/15/06
to
Hi,

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

Arkady Frenkel

unread,
Nov 15, 2006, 8:22:25 AM11/15/06
to
check http://support.microsoft.com/kb/q196271/
Arkady
"news.microsoft.com" <ha...@ask.me> wrote in message
news:uwAZIeKC...@TK2MSFTNGP02.phx.gbl...

Haris Zukanović

unread,
Nov 15, 2006, 12:36:34 PM11/15/06
to
Thanx Arkady,
but I have allready seen this kb article and I have tried it. It doesn't
fix the problem.

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

Arkady Frenkel

unread,
Nov 16, 2006, 1:12:12 AM11/16/06
to
The other only reason is lack of non-pageable memory in kernel mode
Arkady

"Haris Zukanovi?" <ha...@ask.me> wrote in message
news:%23iL4ZyN...@TK2MSFTNGP06.phx.gbl...

Arkady Frenkel

unread,
Nov 16, 2006, 1:54:53 AM11/16/06
to
You can try to increment it due to
http://support.microsoft.com/?kbid=312362
be aware that default size of non-paged memory( when -1 set ) is 25% of your
RAM
Arkady

"Arkady Frenkel" <ark...@hotmailxdotx.com> wrote in message
news:%23QgOpYU...@TK2MSFTNGP06.phx.gbl...

Arkady Frenkel

unread,
Nov 16, 2006, 2:01:34 AM11/16/06
to
Sorry! Instead of "non-paged memory" have to be "kernel memory" ( both paged
and non-paged)
Arkady

"Arkady Frenkel" <ark...@hotmailxdotx.com> wrote in message

news:OasKgwUC...@TK2MSFTNGP02.phx.gbl...

Haris Zukanović

unread,
Nov 17, 2006, 3:28:49 AM11/17/06
to
Indeed, I thank you Arkady!
I set NonPagedPoolSize to 512MB and the problem seems to have
disappeared. Before it was set to 0, and I have no idea which size by
default was in use.

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

Arkady Frenkel

unread,
Nov 19, 2006, 3:32:15 AM11/19/06
to
Great, OTOH you can try zero buffering instead, if you set with setsock opt
suze of kernel socket buffer to 0, it use
buffers from user app and not copy it to kernel.
Arkady

"Haris Zukanovi?" <ha...@ask.me> wrote in message

news:OV3SpJiC...@TK2MSFTNGP04.phx.gbl...

Roman Ryl...

unread,
Dec 3, 2006, 12:52:37 AM12/3/06
to
Hi,

> 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

Arkady Frenkel

unread,
Dec 3, 2006, 11:14:45 AM12/3/06
to
But 15 is very low number, what happen if you open 15 IEs , just a hint
Arkady

"Roman Ryl..." <ryl...@gmail.com> wrote in message
news:1165125157.4...@73g2000cwn.googlegroups.com...

Roman Ryl...

unread,
Dec 3, 2006, 11:28:19 AM12/3/06
to
Arkady,

> 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

Arkady Frenkel

unread,
Dec 4, 2006, 1:27:07 AM12/4/06
to
Use zero-buffering in such case
Arkady

"Roman Ryl..." <ryl...@gmail.com> wrote in message

news:1165163299.5...@j44g2000cwa.googlegroups.com...

0 new messages