Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Gary <debugger@xxxxxxxxxxxxxxxx>
- Date: Mon, 08 Aug 2005 13:39:49 +0530
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
.
- Follow-Ups:
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Oleg Starodumov
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: adebaene
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- References:
- CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Gary
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Bill
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Gary
- Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- From: Arnaud Debaene
- CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- Prev by Date: Re: Stack unwinding on X64
- Next by Date: Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- Previous by thread: Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- Next by thread: Re: CreateThread Fails with ERROR_NOT_ENOUGH_MEMORY....
- Index(es):
Loading