R
R
Roman Kutenko2016-02-08 09:55:29
Node.js
Roman Kutenko, 2016-02-08 09:55:29

Not enough memory to execute gulp-imagemin?

Hello everyone, I'm trying to compress more than 5 gigs of images on a vds with 512mb of memory and the same swap. After a few seconds, all memory is eaten up and execution fails with the following error

internal/child_process.js:298
throw errnoException(err, 'spawn');

3e1d97bc05f0467b8c21354acffe4f11.png
How to limit memory consumption?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pomeo, 2016-02-08
@pomeo

Grab another tool imgo.github.io/imgo

S
sim3x, 2016-02-08
@sim3x

Install locally and then upload to the host - it will be much faster

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question