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

OOM kill for multi-page PDFs #1

Open
486 opened this issue Aug 6, 2019 · 0 comments
Open

OOM kill for multi-page PDFs #1

486 opened this issue Aug 6, 2019 · 0 comments

Comments

@486
Copy link
Owner

486 commented Aug 6, 2019

Because Cloud Run containers only have an in-memory filesystem, I thought it would make sense to just pipe the whole PDF through convert instead of saving anything to file. Turns out that was a bad idea as ImageMagick takes a lot of memory during conversion, probably because it keeps every page with full resolution in memory until it is finished.

This will easily OOM kill the container if the PDF has more than a few pages.

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