Error 0xc000009a, "Insufficient system resources exist to complete the API"

This code is Windows saying a program asked for a system resource and there was not enough left to give it. Microsoft's name for it is STATUS_INSUFFICIENT_RESOURCES. The missing resource is often memory, but it can also be handles, desktop heap, or paged pool, which is why the error can appear even when Task Manager shows free RAM.

The fix, in order

  1. Close programs you are not using, then restart the PC. A restart releases every leaked handle and pool allocation, and it is the fastest way to tell whether the problem is a one-off shortage or a leak that comes back.
  2. Open Task Manager and find the hog. Sort by Memory and look for a process whose memory use keeps climbing without stopping, which is the signature of a leak. Close it, and update or reinstall that program.
  3. Free disk space. Windows needs room for the page file, so free space on the system drive with Storage Sense or by removing large files, and keep at least 10 percent of the drive free.
  4. Update drivers, especially graphics and storage. Faulty drivers are a classic source of pool leaks, so get the latest versions from the PC or hardware maker's support page and restart after installing.
  5. Run Windows Update. Microsoft ships fixes for resource leaks in Windows itself, so install any pending updates and restart.
  6. Check the page file setting. Open System, Advanced system settings, Performance Settings, Advanced, Virtual memory, and make sure it is set to System managed size rather than a small fixed value.
  7. Repair Windows files. In an admin Command Prompt run sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth.
Do not use registry cleaners or RAM booster apps to fix this. They cannot restore handles or pool memory, and they often make things worse by killing processes Windows needs. Find the leaking program or driver instead.

If it still happens

If the error returns a few hours after every restart, a driver or a background program is leaking, so use Task Manager over time to spot the process whose memory or handle count grows, then update or remove it. If the error happens only when you open a very large file or project, the PC genuinely needs more RAM, so check how much is installed and whether the board has a free slot before buying.

Common questions

Is 0xc000009a the same as running out of memory? It is related but not identical. Running out of memory is usually 0xc0000017, while 0xc000009a means some system resource ran out, which can be memory, but can also be handles, desktop heap, or paged pool. The fixes overlap, since freeing memory and closing programs help both.

Will adding more RAM fix 0xc000009a? It helps if the cause is genuinely low memory, but it will not fix a driver leak or a program that keeps grabbing handles without releasing them. Check Task Manager first to see whether memory use climbs without stopping, since that points to a leak rather than a shortage.

Why does 0xc000009a happen when Task Manager shows free RAM? Because the exhausted resource may not be RAM. Windows also limits things like the desktop heap, the paged pool, and the number of handles a process can hold, and any one of those can run out while plenty of RAM sits free.

Related errors

Error 0xc0000017 · Error 0xc0000006 · Error 0xc0000142

Was this helpful?