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

Implement a way to write object dumps to a file #94

Open
gnufied opened this issue Dec 26, 2014 · 3 comments
Open

Implement a way to write object dumps to a file #94

gnufied opened this issue Dec 26, 2014 · 3 comments

Comments

@gnufied
Copy link
Contributor

gnufied commented Dec 26, 2014

We should implement a way to write current heap dump to a file when process receives a special SIGNAL.

Such a thing can slow down the ruby process (not altogether unexpected), for first iteration we can keep it in same thread/process as main application but later on perhaps worth exploring forking a process for writing the dump file.

@emilsoman
Copy link
Contributor

Can you give me an idea of how this will be used ? Ruby already has an API for dumping all heap objects into a file, maybe we can use the same.

@gnufied
Copy link
Contributor Author

gnufied commented Dec 26, 2014

basically, what I am thinking is - you can take a offline dump (assuming was started with profiling enabled) by sending a signal to the process. and then SCP the dump and analyze the dump for possible leaks etc.

It is useful in scenarios where client lets say does not want us to connect to the process via zeromq online but he can still create a memory dump which we can use to analyze the leak etc.

@stereobooster
Copy link

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

No branches or pull requests

3 participants