We have developed a wonderful application under Windows 2K using Ruby 1.6.5 as scripting language. Now, I'm facing an issue: The application is supposed to run for several days and it is using up memory - in small amounts but constantly, after 2 days around 200 MB. The situation can be easily reproduced: - Compile and install an out-of-the-box Ruby 1.6.5 (Microsoft VC++ 6.0 SP5) - Run the following script "demo.rb", which in a loop loads "loadit.rb" - Watch Taskmanager's Virtual Memory Display of ruby.exe #demo.rb counter = 0 while TRUE counter = counter + 1 load "loadit.rb" puts "Round #{counter}" if (counter.modulo(100) == 0) GC.start if (counter.modulo(500) == 0) end #end of demo.rb #loadit.rb def foo(x) x = x + 1 end foo(1) #end of loadit.rb Does anybody have an idea where the memory goes away? How can I work around this?