ERROR_NOT_ENOUGH_QUOTA on CreateFileMapping()

Hi everybody,

I got a strange one (whats new?) at a customer site. They are on NT
SERVER 4.0, SP6a. I get an error on CreateFileMapping() (on the whole
file, PAGE_READWRITE, default security) and GetLastError() returns:

ERROR_NOT_ENOUGH_QUOTA: Not enough quota is available to process this
command

What quota could that be?

Paging space was fine (there was more than 100Meg free space). The
application process has a VMsize of about 150Meg, real memory usage 8
Meg, 3,000 file handles (it is mapping portions of many files in a very
large database) , 100 or so threads. Nothing unusual for our app…

The end user swears this is a vanilla 4.0 Server, with no tweaking or
special settings, but apparently the IT person who set the machine has
left the company, so we dont really know what was done…

Any idea?

Thanks in advance.

Try using SetProcessWorkingSetSize() – see Q108449

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Eric Soirot [mailto:xxxxx@picksys.com]
Sent: Friday, August 18, 2000 11:42 AM
To: NT Developers Interest List
Subject: [ntdev] ERROR_NOT_ENOUGH_QUOTA on CreateFileMapping()

Hi everybody,

I got a strange one (whats new?) at a customer site. They are on NT
SERVER 4.0, SP6a. I get an error on CreateFileMapping() (on the whole
file, PAGE_READWRITE, default security) and GetLastError() returns:

ERROR_NOT_ENOUGH_QUOTA: Not enough quota is available to process this
command

What quota could that be?

Paging space was fine (there was more than 100Meg free space). The
application process has a VMsize of about 150Meg, real memory usage 8
Meg, 3,000 file handles (it is mapping portions of many files in a very
large database) , 100 or so threads. Nothing unusual for our app…

The end user swears this is a vanilla 4.0 Server, with no tweaking or
special settings, but apparently the IT person who set the machine has
left the company, so we dont really know what was done…

Any idea?

Thanks in advance.


You are currently subscribed to ntdev as: xxxxx@ultrabac.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)