# Garbage collection parameters and statistics

**URL:** <https://www.ruby-forum.com/t/garbage-collection-parameters-and-statistics/87782>\
**Category:** Ruby\
**Created:** [March 5, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/garbage-collection-parameters-and-statistics/87782 "2007-03-05T23:10:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinoddas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/278dde/32.png) [@vinoddas](https://www.ruby-forum.com/u/vinoddas)\
**Post date:** [March 5, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/garbage-collection-parameters-and-statistics/87782/1 "2007-03-05T23:10:24Z")

</div>

hi,

i was wondering whether there is a mechanism in ruby where we can tune  
certain GC params like heap size etc and collect the stats like pause  
times etc in ruby. i would like to analyze the GC performance of ruby  
with varying certain params.

all i could find was a GC.start and stop which is of no use to me

tx,  
V

---

<div class="post-metadata">

**Author:** ![vinoddas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/278dde/32.png) [@vinoddas](https://www.ruby-forum.com/u/vinoddas)\
**Post date:** [March 6, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/garbage-collection-parameters-and-statistics/87782/2 "2007-03-06T23:54:48Z")

</div>

On Mar 5, 2007, at 14:10, Vinod Kone wrote:

> i was wondering whether there is a mechanism in ruby where we can tune  
> certain GC params like heap size etc and collect the stats like pause  
> times etc in ruby. i would like to analyze the GC performance of ruby  
> with varying certain params.

Only by recompiling gc.c.
