"ERROR: a memory allocation request failed" with 128Gb RAM?

Anonymous
2023-11-20T06:39:57+00:00

I am encountering "ERROR: a memory allocation request failed" and the program exits after completing about 90% of my analysis.

After a bit of bing-ing and googling I found that this is caused when the system runs out of memory. But I find it absurd because at the time of exiting, the ram consumption of the command line window in which my program is running is only about 700Mb and I have 128Gb of RAM in my system.

In the task manager also, I see only about 8Gb in use out of 128Gb RAM at the time when this error is shown.

I had about 19Gb of page file size which seemed useless since I have enough RAM so I have disabled the page file so that everything is in the RAM. I am still getting this issue. I was getting the same issue even when I had the pagefile.

Kindly help me on how to solve this issue. It is frustrating and is slowing down my work when most needed.

Thanks in advance.

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-11-21T11:01:57+00:00

    Hello Sri Hari Satya Bharadwaj V,

    Welcome to Microsoft Community and we regret the inconvenience caused to you.

    Base on my experience that if there is not enough memory available on the system, the memory allocation request will fail. This could be because other processes are using a lot of memory, or the system itself is using a lot of memory, such as cache or kernel data structures.

    Of course some apps do not release the memory after using it, the memory usage will continue to increase, eventually leading to insufficient memory.

    Please perform a clean boot and close any non-Microsoft third-party apps to see if issue will be resolved. 

    These steps of "clean boot" might look complicated at first glance. However, to avoid any trouble for you, please follow them in order and step-by step so that it will help you get you back on track.

    Since some of the technology is out of my scope of knowledge so I'm honestly have any good solutions.

    Here is a link **** to the forum where you can raise specific scenarios and share your idea to help solve the problem.

    I'm sorry because I may not be able to help you directly, but I hope to guide you to the right place. Wish you everything as well!

    Best Regards,

    Lenka-MSFT| Microsoft Community Support Specialist

    0 comments No comments