Integrations
Garbage Collection
The Ruby VM (Virtual Machine) uses Garbage Collection (GC) to prevent it from running out of process memory. Garbage Collection helps prevent your application from suffering memory outages due to running out of memory.
This processes of cleaning up unused memory in Ruby apps can happen at any time. To get more insights into this you can use Ruby’s Garbage Collection profiler.
To temporarily enable the GC profiler, make sure to disable the profiler afterwards.
For the Ruby gem to report any duration over zero for the garbage collection time, the profiler must be enabled for more than two minutes. This is the initial time the Ruby gem needs to measure the garbage collection time. We recommend enabling GC profiling for longer than the minimum of two minutes to ensure we have complete measurements required to compare and graph.
Was this page helpful?
⌘I