i'm keen to know, why there are memory leaks in Ruby on Rails
framework ?
All observations and thoughts are welcome.
thanks
Saifi.
leaking around 20,000 string objects every 10 seconds ! Wow !
If Ruby is such a fine language with "Mark and Sweep" method of
garbage collection, why is there a memory leak ?
Ruby has been around for 14 - 15 years and so it has been around
for the same number of years Java has been.
I'm sure i must be missing something here.
Btw, i'm a Ruby newbie.
thanks
Saifi.
> Hey saifi,
>
> Check this out. It details why and how memory leaks can occur.
> http://whytheluckystiff.net/articles/theFullyUpturnedBin.html
>
> Just like in ruby im sure anyone can cause memory leaks in any language be
> it java or C++ when they are not careful about
> coding.
>
The minimum heap size in Ruby is 8 megabyte !
Isn't that a lot for a scripting language.
In a high-level scripting language like Ruby, memory leak is
unacceptable ! The entire purpose of high-level constructs is to
provide the developer a vehicle to express his intentions in
code and then the VM takes care of the rest.
In C++ memory leak is understandable because it is a programmer
mistake. C++ never claims to run a GC for you in the runtime.
I suspect this is a congenital defect in Ruby one that will
hinder it from gaining enterprise traction.
Time has come to design a new programming language :-)
thanks
Saifi.