Skip to content

The failed executions index page loads all failures' stack traces, consuming large amounts of memory #279

@searls

Description

@searls

I'm currently debugging an issue that's causing HTTP requests to spiral out of control in infinite recursion, which is resulting in each associated failed job to persist a >1MB backtrace. Best I can tell, the failed jobs index controller (/jobs/applications/appname/failed/jobs) is querying Solid Queue's failed executions table and loading all of these into RAM, which is instantly killing my Heroku instance for vastly exceeding its memory quota (seeing >2GB of memory consumption by this route to load the index page).

I haven't seen anyone else mention this as an issue, but it seems like a reasonable approach might be to selectively select the columns needed to render the failed#index page so they're not all being fully loaded into memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions