Assisted debugging

Revision as of 23:24, 8 September 2016 by Kir (talk | contribs) (→‎Checkpoint: lowercase)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CRIU can be used to assist in application debugging.

Use casesEdit

Remote analysis
Take periodic snapshots of a running application, transfer those to another machine to debug, analyse its behavior, performance etc.
Deferred debug
An application in production is not working properly and needs a restart ASAP. Checkpoint it before restarting, and use the dump later for debug.
Problem reporting
An application misbehaves. Checkpoint it and send the dump together with the problem description to its author/maintainer.

HOWTOEdit

CheckpointEdit

Use criu dump as usual. If the app is not running inside an isolated container, you might need to use a few options described in external resources.

Note you also need to include a file system snapshot; see filesystem C/R for details.

RestoreEdit

To restore, use criu-ns tool, it solves a number of issues.

See alsoEdit