>>>>> "R" == =?ISO-8859-2?Q?Rados=B3aw Bu=B3at?= <ISO-8859-2> writes: R> My point is that this simple program should use constant amount of R> _maximum_ (like mine simple program). memory but it doesn't (even if R> we call GC manually it frees memory but heap capacity increases so R> each time maximum used memory is greater than before). Write it like this def leaker GC.disable a = "" 10000.times do a = a + "buble" end GC.enable a = "" end Guy Decoux