Process requesting memory allocation more than total RAM resulting in error memory alloc (xxxxxxxxxxx bytes) returned NULL.

Solution Verified - Updated -

Issue

  • Memory allocation requested by a process more than total RAM on the system fails with error memory alloc (xxxxxxxxxxx bytes) returned NULL.

  • rpm --rebuild fails with error memory alloc (xxxxxxxxxxx bytes) returned NULL.

  • Memory allocation fails even if available RAM+swap together could fulfill the requested memory and memory requested is more than or equals to RAM on the system.

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In