From: Toby DiPasquale Date: 2006-03-18T02:45:23+09:00 Subject: Re: Writing long-running daemons without memory leaks? unknown wrote: > harp:~ > ps aux|head -1; while true;do ruby b.rb && ps aux|grep [...] > ahoward 13671 18.3 19.5 212736 200952 pts/26 R 10:14 1:12 ruby > a.rb > ahoward 13671 18.4 21.1 230824 216768 pts/26 R 10:14 1:12 ruby > a.rb > ahoward 13671 18.5 22.3 230816 229404 pts/26 S 10:14 1:12 ruby > a.rb > > > so memory builds to about 25 and, presumably when the gc kicks in, drops > to 15 > - but it certainly stays in this range. > > what os and ruby version? ruby 1.8.4 on Ubuntu Linux, kernel 2.6.12-10 on a P4 Thinkpad with 1GB RAM. The other systems having this problem are all also running Linux 2.6.x with ruby 1.8.4. One thing about the above: you do realize that's ~250MB and ~150MB, not 25 and 15, right? -- Toby DiPasquale -- Posted via http://www.ruby-forum.com/.