I have started to test my socket server. In my first test case, the server
only accepts client connections and pushes accepted sockets to a queue.No
send or recv posted. I wrote a small client application which connects to
the server in a loop. After ~3000 connections established, client
application catchs an exception saying "An operation on a socket could not
be performed because the system lacked sufficient buffer space or because a
queue was full". At that point non-paged memory usage of the server is about
1600K. I tried to run test application on a different machine, nothing
changed. The machine on which the server run has 2GB of RAM. This should not
be a resource(particularly RAM) problem. Then what is the problem?
Thanks in advance.
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Küržat" <x...@yy.com> wrote in message
news:edGlMCRi...@TK2MSFTNGP02.phx.gbl...
"Volodymyr M. Shcherbyna" <v_sch...@online.mvps.org> wrote in message
news:ehoh9FRi...@TK2MSFTNGP02.phx.gbl...
"Kürţat" <x...@yy.com> wrote in message
news:%23c37ELT...@TK2MSFTNGP04.phx.gbl...
> May be but how can I overcome that limit? My test machine is not trivial.
> It have a Core2 Duo 2GHz CPU with 2GB memory installed. I think it should
> handle far more connections without any resource issue.
>
>
> "Volodymyr M. Shcherbyna" <v_sch...@online.mvps.org> wrote in message
> news:ehoh9FRi...@TK2MSFTNGP02.phx.gbl...
>> Each object occupies some memory, so probably, your test application has
>> reached it's quota, and winsock is unable to allocated more memory for
>> holding object.
>>
>> --
>> V.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> "Kürţat" <x...@yy.com> wrote in message
I have found a workaround at http://support.microsoft.com/kb/q196271/ but my
client application still fails with WSAENOBUF after exactly 9988 th.
connection everytime. What magic does number 9988 have?
"m" <m@b.c> wrote in message news:ehyMTmVi...@TK2MSFTNGP03.phx.gbl...
> What OS?
>
> "K�r�at" <x...@yy.com> wrote in message
> news:%23c37ELT...@TK2MSFTNGP04.phx.gbl...
>> May be but how can I overcome that limit? My test machine is not trivial.
>> It have a Core2 Duo 2GHz CPU with 2GB memory installed. I think it should
>> handle far more connections without any resource issue.
>>
>>
>> "Volodymyr M. Shcherbyna" <v_sch...@online.mvps.org> wrote in message
>> news:ehoh9FRi...@TK2MSFTNGP02.phx.gbl...
>>> Each object occupies some memory, so probably, your test application has
>>> reached it's quota, and winsock is unable to allocated more memory for
>>> holding object.
>>>
>>> --
>>> V.
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>> "K�r�at" <x...@yy.com> wrote in message
It may be you're maxing out on USER or GDI objects. These can be
viewed in Task Manager.