Skip to content

Suspect memory leak #2

@FabioRos

Description

@FabioRos

I need to use state_pattern gem dozens times every second and I observe that memory usage is growing fast.
I might reckon that state transitions keep an activation record in ram waiting for return. However, it seems that return never happens, so after a while, program crashes.
I have already forked your gem in order to keep only one previous state instead of all of those. My temporary solution reduces the leak impact although its effect is delayed just for a while.

Do you have any ideas to solve that issue?

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