Skip to content

ruby overcommits memory when forking leading to Out of memory error #6

@grosser

Description

@grosser

the fork we are using only needs minimal extra memory since we do not write to the memory, but to make the fork ruby checks if 2x memory is available ... for memory constraint apps that is too much and safe-regex fails

Errno::ENOMEM: Cannot allocate memory

see https://blog.sundaycoding.com/blog/2014/02/05/fighting-paperclip-errno-enomem-error/

We could for example have an executable outside of lib that we communicate to via a unix socket and boot via system so it has a very low memory overhead.

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