Skip to content

OOM kill for multi-page PDFs #1

@486

Description

@486

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions