Artificially limit memory usage #4106
Replies: 2 comments 13 replies
-
Hi @RealOrangeOne, Can you share your Limiting the threadpool can help, setting the env var libvips has an operation and image cache, you can disable this with The exact input and output image formats make a big difference. Interlaced JPG and PNG can be very expensive to process. |
Beta Was this translation helpful? Give feedback.
-
Docker supports control groups - please see https://docs.docker.com/engine/containers/resource_constraints/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working in a somewhat memory constrained environment. Resizing large images (~92MP) consumes more memory than we'd like.
Using
systemd-run
, I can limit the memory, and it works fine:In my case, using less memory is better than being fast, so this works fine. However, this use case won't work for us in production, as we can't use
systemd
to limit the usage (in our case, from inside a Docker container)Is there a way to artificially limit
libvips
's memory usage? In a way which wouldn't cause it to crash on these larger images, just process slower?Beta Was this translation helpful? Give feedback.
All reactions