...
Code Block |
---|
# Used by pyrasite to inject code into a running process sudo apt-get install gdb # Used to allow pyrasite to inspect the internals of a running process sudo apt-get install python-dbg # Make sure that gdb can find debugging symbols for the virtualenv python sudo mkdir -p /usr/lib/debug/opt/edx sudo ln -s /usr/lib/debug/{usr,opt/edx}/bin # Enable ptrace echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope |
Meliae
Dumps memory from a process, killing it as well.
To dump memory from and kill a process, run:
Code Block |
---|
kill -SIGPROF <process> |
Pyrasite
A python library that uses gdb to inject code into a running python process. Can be used for viewing memory statistics, and also other live process inspection.
...