sampledoc

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.

Setup

  • Install the Guppy package first.
  • Add Guppy to the plugins line in bcfg2.conf.

Use cases

To attach the console run:

python -c "from guppy import hpy;hpy().monitor()"

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()

Table Of Contents

Previous topic

Svn

Next topic

Trigger

This Page