Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added possibility to dump object space to file before kill for memory limit #42

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

robertoz-01
Copy link

Added the parameter object_space_dump to Unicorn::WorkerKiller::Oom. When it is set to true, before killing a process for memory reason, memory object space is dumped to file. By default the file name is /tmp/unicorn_worker_$PID.json and can be changed in Unicorn::WorkerKiller::Configuration class. Dump file is generated through ObjectSpace.dump_all that is available from Ruby 2.1, so this option can be enabled only with this version of Ruby.

@stanhu
Copy link

stanhu commented Sep 25, 2017

I think this would be really helpful for us at GitLab to diagnose Ruby leaks. Could we consider updating this branch to be mergable?

@stanhu
Copy link

stanhu commented Sep 25, 2017

Looks like the only conflict is in the README.md. @kzk Can we consider this for a release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants