Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....



Well, It's a 4CPU box with 4Gigs RAM. What you are saying might be correct, but I am having no luck with !address -summary . That command is failing on my box. Let me see if there can be other ways to achieve the same.

Thx,
Gary.

Arnaud Debaene wrote:
Gary wrote:

Well, the stack size manipulation is not acceptable for us. This
application was running fine until few days back but it started
popping up this error after we had a new drop of binaries.


Well, first of all having 180 threads seems to me a good candidate for throwing away at least a part of the conception. How many processors do you have on the box?

Why is reducing the stack size of some threads "innaceptable"? I bet each of theses threads doesn't do a lot of things, no?


The system WIN2K Server has almost 4G RAM available & huge disk
space. I dont think its running out of system memory.
Do you think the pagefile settings of the box needs to be re-looked ?
Apart from looking into the number of different kind of objects
consumed......Is there any way to see if any of those object types is
hitting a maximum limit ?

As explained, use Windbg or the like to see what your user address space looks like... I suspect that the threads stacks are placed in such a place in the virtual address space that fragmentation is the limiting factor, not total available space.


Arnaud
MVP - VC


.


Loading