Guppy¶
This plugin is used to trace memory leaks within the bcfg2-server
process using Guppy. By default the remote debugger is started
when this plugin is enabled. The debugger can be disabled in a running
process using bcfg2-admin xcmd Guppy.Disable
and enabled using
bcfg2-admin xcmd Guppy.Enable
.
Example¶
# python -c "from guppy import hpy;hpy().monitor()"
<Monitor>
*** Connection 1 opened ***
<Monitor> lc
CID PID ARGV
1 25063 ['/usr/sbin/bcfg2-server', '-D', '/var/run/bcfg2-server.pid']
<Monitor> sc 1
Remote connection 1. To return to Monitor, type <Ctrl-C> or .<RETURN>
<Annex> int
Remote interactive console. To return to Annex, type '-'.
>>> hp.heap()