Sha256: afe167a0eefdc6fe3bb902687f0cd982442e9ae4e655a45b978e752e1d456df6

Contents?: true

Size: 889 Bytes

Versions: 1

Compression:

Stored size: 889 Bytes

Contents

# sigdump

Server applications (like Rails app) cause performance problems, deadlock or memory swapping from time to time. But it's painful to reproduce such kind of problems. If we can get information from a running process without restarting it, and it's really helpful.

`sigdump` gem installs a signal handler which dumps backtrace of running threads and number of allocated objects per class.

# Install

Just install one gem `sigdump` and require `sigdump/setup`:

    gem 'sigdump', :require => 'sigdump/setup'

# Usage

Send `SIGCONT` signal to dump backtrace and heap status to `/tmp/sigdump-<pid>.log`:

    $ kill -CONT <pid>

Set `SIGDUMP_SIGNAL` environment variable to change the signal (default: SIGCONT).

Set `SIGDUMP_PATH` environment variable to change the output path (default: /tmp/sigdump-\<pid\>.log). You can set "-" here to dump to STDOUT, "+" to dump to STDERR.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sigdump-0.1.0 README.md