Comment 16 for bug 1472338

Revision history for this message
Mike Pontillo (mpontillo) wrote : Re: Failed to refresh power state and unhandled errors - exceptions.OSError: [Errno 12] Cannot allocate memory

This StackOverflow answer seems to match what we are seeing; as always, there is no simple answer:

    http://stackoverflow.com/a/13329386/77939

One proposed solution was to fork() subprocesses early, before the parent process starts using extreme amounts of memory. For example, by forking a daemon early on which will be responsible for running subprocesses:

    https://github.com/greyside/errand-boy