← Graph

ObjectSpace heap dumps

concept 2 connections

Ruby's built-in facility (ObjectSpace + allocation tracing) to dump every live object to a file where each line is a JSON object containing address, type, value, allocation file/line, and generation (how many GC cycles it has survived). Produces tens of thousands of lines even for trivial programs, so higher-level tools like heapy are needed to analyze it.

category
practice
about
ObjectSpace heap dumps concept
Uses Ruby's built-in heap-dump facility to investigate a suspected memory leak.
concept ObjectSpace heap dumps
related_to
Ruby tool
Built into Ruby's ObjectSpace module.

Provenance

Read by
14 extractions