Questions tagged [enomem]

Use enomem for questions related to the ENOMEM message which stands for "Error, No Memory" returned by the C runtime library.

References

21 questions
22
votes
1 answer

munmap() failure with ENOMEM with private anonymous mapping

I have recently discovered that Linux does not guarantee that memory allocated with mmap can be freed with munmap if this leads to situation when number of VMA (Virtual Memory Area) structures exceed vm.max_map_count. Manpage states this (almost)…
user1143634
16
votes
2 answers

AWS elastic beanstalk deploy fails with ENOMEM error

Your AWS Elastic Beanstalk deployment fails: - Intermittent - For no real apparent reason Step 1: Check obvious log /var/log/eb-activity.log Running npm install: /opt/elasticbeanstalk/node-install/node-v6.10.0-linux-x64/bin/npm Setting npm…
11
votes
5 answers

Is it possible to fork a process without inherit virtual memory space of parent process?

As the parent process is using huge mount of memory, fork may fail with errno of ENOMEM under some configuration of kernel overcommit policy. Even though the child process may only exec low memory-consuming program like ls. To clarify the problem,…
tianyapiaozi
  • 1,928
  • 2
  • 15
  • 19
3
votes
0 answers

malloc returns NULL and sets errno to ENOMEM, but there is plenty of heap space available?

I have a situation in which malloc() returns NULL and sets errno to ENOMEM. But the CRT heap (which is growable) has plenty of memory to work with. At the time of malloc, my process memory is about 900 MB. The host process is a Java executable…
Martin Frank
  • 199
  • 1
  • 13
3
votes
0 answers

ENOMEM error when starting Next.js app on shared hosting server

TL;DR: I got an spawn ENOMEM error when trying to build and run my Next.js app on a shared hosting server, which had over 900MB RAM and 70+ processes available at the time this happened. The log showed that the RSS size was 50814976 when the error…
3
votes
1 answer

ENOMEM in Node.js caused by high virtual memory usage

I've been getting ENOMEM errors in my production Node.js (v12) app for a couple of months. This issue has been particularly hard to diagnose because my heap is always in the 100MB range and doesn't increase over time. Hence a node memory leak is…
2
votes
1 answer

mmap returns ENOMEM with shm_open file object

experimenting with shm_open in linux and running into problems. i'm frequently resizing a shared memory segment with ftrunc and using mmap to remap the resized segment. however, right around the 20 megabyte mark i get ENOMEM from mmap. things i have…
paintcan
  • 703
  • 1
  • 6
  • 10
2
votes
1 answer

Causes for ENOMEM from ::popen()

I have an application that mostly works, but am having one condition wherein the call to ::popen() gets an error with errno set to ENOMEM. The man page for ::popen() refers you to page for ::fork() which itself lists ENOMEM with this brief comment…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
2
votes
0 answers

Diagnosing ENOMEM with popen() and system() calls in C++

I'm dealing with a gargantuan C++ code for computational physics (that I didn't write) which calls other executables using system() calls. Sometimes in the middle of a simulation these system() calls will fail even for simple calls like system("echo…
LedHead
  • 237
  • 1
  • 3
  • 13
1
vote
0 answers

Nuxt build - “Error: spawn ENOMEM” - NPROC limit reached

I want to put my Nuxt project online at my hosting, but I encounter the problem that "npm run build" does not succeed. I get the following error: node_modules/html-webpack-plugin/lib/cached-child-compiler.js:267:53 Nuxt Fatal Error Error: spawn…
Mary-Ann
  • 11
  • 1
1
vote
1 answer

Grisome build succeeds locally but fails on AWS Amplify

I have a Gridsome site that I'm trying to deploy to AWS Amplify. The site builds fine and with no errors locally with gridsome build, however on AWS Amplify, it fails. I initially thought the error was related to a non-SSR component I was using that…
1
vote
1 answer

shmget return ENOMEM with 12GB free

I try to allocate 22MB of shared memory using shmget(), but it exits with errno ENOMEM. The first lines of top's output look as if there was enough memory: Processes: 114 total, 4 running, 110 sleeping, 579 threads Load Avg: 0.50, 0.42, 0.35 CPU…
0
votes
0 answers

NodeJS ENOMEM error when reading from a file

I have an application written in Node.js which works fine when running on one server. When I try running it in a Vagrant virtual machine, I get ENOMEM errors when trying to read from files. These files are not particularly big (one of the files…
0
votes
0 answers

Failed to minify the bundle. Error: static/js/2.2c2ccbd8.chunk.js from Terser

When I am trying to deploy my react app on AWS Amplify I am getting below error. We are using Amplify for last 2 years. It was working fine till last week but now its build is failing. I am using NODE_OPTIONS=--max_old_space_size=4096 in build…
0
votes
1 answer

RUST error ENOMEM in call of posix_memalign into attached program

I'll try to summarize but it's gonna be complicated. I'm having an operating system course in my university, and i have a lab work to do. I'm working in Rust (the lab work is said to be doable in any compiled language but was principally designed…
Carryboo
  • 1
  • 2
1
2