3 ms·
"Ruby leaks. God is written in ruby. If you run God long enough, it will run out of memory and stop working properly. In all fairness, this is not Tom Presten-W
by plinkplonk 18y ago
"Ruby leaks. God is written in ruby. If you run God long enough, it will run out of memory and stop working properly. In all fairness, this is not Tom Presten-Warners fault. He spent a lot of time trying to minimize the leakage in God but its simply not possible in Ruby. Monit was written properly in C meaning it won't leak like a long-running Ruby application."
This is absolutely hilarious! A process monitor leaks memory and crashes the server. Words fail me!
EDIT: Rub my eyes and read again. Ruby leaks memory? The language (interpreter ? VM? ) leaks memory? That can't be right? He must have meant the application (God) leaks memory (perhaps by holding onto objects and not letting the GC collect them)
- pwk 18y agoThe language (interpreter ? VM? ) leaks memory? AFAIK the interpreter has no intrinsic leaks, but many ruby applications keep objects referenced beyond their intended life, preventing GC. Edit: You extended your edit after I started responding :-> perhaps by holding onto objects and not letting the GC collect them Yup, that's my understanding.
- plinkplonk 18y ago"AFAIK the interpreter has no intrinsic leaks, " ok if what you say is true then Brad's blog post is just wrong isn't it?. Either he is right or you are. Holding onto objects sounds like something user code does so "ruby leaks" is (or should be) not correct usage I think. I use python I don't use Ruby, but "Python leaks", as a claim, is different from "my program written in python leaks memory". the blog post seems to imply it is Ruby's fault. At least it reads that way ("Ruby leaks") hence my confusion. Thanks for the clarification EDIT: I stand corrected. It seems like Tom is right and the ruby interpreter leaks memory! Incredible!
- deleted 18y ago[deleted]
- mojombo 18y agoMRI has had a variety of memory leaks. I did an extensive search for the memory leaks on god, which you can read about here: http://groups.google.com/group/god-rb/browse_thread/thread/01cca2b7c4a581c2 http://groups.google.com/group/god-rb/browse_thread/thread/0.... I've verified that it's not an object referencing issue (which you can also read about in that link). Something in the threading code of MRI appears to be at fault, but I haven't had time to track that down yet.
- plinkplonk 18y agoTom , I just saw your comment on the post. I stand corrected. It seems the Ruby interpreter does leak memory!
- pwk 18y agoInteresting, thanks for the pointer.