Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOMEM on server with 2GB of RAM #321

Open
tomasdev opened this issue May 29, 2019 · 0 comments
Open

ENOMEM on server with 2GB of RAM #321

tomasdev opened this issue May 29, 2019 · 0 comments

Comments

@tomasdev
Copy link

Steps to reproduce:

  1. Create a VM or similar with 2GB of RAM
  2. Create input-folder with 1000 jpegs of various sizes (in my sample I have files between 100kb and 1mb)
  3. Run imagemin input-folder/* --out-dir=output-folder

Expected behavior:
Process finishes properly, as no single image requires a lot of memory.

Current output:
nodejs exits with a ENOMEM on child spawn after a bunch of images are processed (sort of random, but clearly depends on memory usage)

(tracked at nodejs/node#25382)

WORKAROUND
Create a bash script that runs imagemin for each file recursively in a folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant