I''m using ruby on rails on a Macbook Pro with sqlite3. I''m finding that memory for the ruby process stays about 20mb until I hit an error after which the mermory doesn''t seem to be released and keeps going up until I can''t use my machine. What could be causing this? is it using sqlite3? have I set up rails or ruby wrong? Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060817/70b5b378/attachment.html
On 8/17/06, Tim Cochran <timothy.cochran@gmail.com> wrote:> I''m using ruby on rails on a Macbook Pro with sqlite3. I''m finding that > memory for the ruby process stays about 20mb until I hit an error after > which the mermory doesn''t seem to be released and keeps going up until I > can''t use my machine. > > What could be causing this? is it using sqlite3? have I set up rails or ruby > wrong?Reports of memory leaks have started popping up on the mongrel mailing list. Now, the current thought is that it has nothing to do with mongrel, and most likely a bug in Rails 1.1.6. It might be helpful, whether you''re using mongrel or not, to post details about your server and what mode (development, production) you''re running in. -- James
I''m not using mongrel I''m using webrick. My collegue uses the same code base on a windows machine with webrick and doesn''t seem to get the same memory isseues. On 8/17/06, James Ludlow <jamesludlow@gmail.com> wrote:> > On 8/17/06, Tim Cochran <timothy.cochran@gmail.com> wrote: > > I''m using ruby on rails on a Macbook Pro with sqlite3. I''m finding that > > memory for the ruby process stays about 20mb until I hit an error after > > which the mermory doesn''t seem to be released and keeps going up until I > > can''t use my machine. > > > > What could be causing this? is it using sqlite3? have I set up rails or > ruby > > wrong? > > Reports of memory leaks have started popping up on the mongrel mailing > list. Now, the current thought is that it has nothing to do with > mongrel, and most likely a bug in Rails 1.1.6. It might be helpful, > whether you''re using mongrel or not, to post details about your server > and what mode (development, production) you''re running in. > > -- James > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060817/6ae98fd7/attachment.html
On Thu, 2006-08-17 at 10:51 -0500, James Ludlow wrote:> On 8/17/06, Tim Cochran <timothy.cochran@gmail.com> wrote: > > I''m using ruby on rails on a Macbook Pro with sqlite3. I''m finding that > > memory for the ruby process stays about 20mb until I hit an error after > > which the mermory doesn''t seem to be released and keeps going up until I > > can''t use my machine. > > > > What could be causing this? is it using sqlite3? have I set up rails or ruby > > wrong? > > Reports of memory leaks have started popping up on the mongrel mailing > list. Now, the current thought is that it has nothing to do with > mongrel, and most likely a bug in Rails 1.1.6. It might be helpful, > whether you''re using mongrel or not, to post details about your server > and what mode (development, production) you''re running in.The only report I''ve seen is from Carl Lerche so if you know of more please point me at the references. I''m also cooking up a slightly better memory debugger for mongrel in the next pre-release. It''s helped a few people find memory leaks in their rails code. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
Zed Shaw wrote:> I''m also cooking up a slightly better memory debugger for mongrel in the > next pre-release. It''s helped a few people find memory leaks in their > rails code.Hey Zed, What else do you have planned for future versions of Mongrel? Joe -- Posted via http://www.ruby-forum.com/.
On 8/17/06, Zed Shaw <zedshaw@zedshaw.com> wrote:> On Thu, 2006-08-17 at 10:51 -0500, James Ludlow wrote: > > On 8/17/06, Tim Cochran <timothy.cochran@gmail.com> wrote: > > > I''m using ruby on rails on a Macbook Pro with sqlite3. I''m finding that > > > memory for the ruby process stays about 20mb until I hit an error after > > > which the mermory doesn''t seem to be released and keeps going up until I > > > can''t use my machine. > > > > > > What could be causing this? is it using sqlite3? have I set up rails or ruby > > > wrong? > > > > Reports of memory leaks have started popping up on the mongrel mailing > > list. Now, the current thought is that it has nothing to do with > > mongrel, and most likely a bug in Rails 1.1.6. It might be helpful, > > whether you''re using mongrel or not, to post details about your server > > and what mode (development, production) you''re running in. > > The only report I''ve seen is from Carl Lerche so if you know of more > please point me at the references. > > I''m also cooking up a slightly better memory debugger for mongrel in the > next pre-release. It''s helped a few people find memory leaks in their > rails code.I was mistaken. I swear that I saw more than one report, but when I went back and checked it was both of Carl''s threads. My bad. -- James
On Fri, 2006-08-18 at 10:13 -0500, James Ludlow wrote:> On 8/17/06, Zed Shaw <zedshaw@zedshaw.com> wrote: > > > Reports of memory leaks have started popping up on the mongrel mailing > > > list. Now, the current thought is that it has nothing to do with > > > mongrel, and most likely a bug in Rails 1.1.6. It might be helpful, > > > whether you''re using mongrel or not, to post details about your server > > > and what mode (development, production) you''re running in. > > > > The only report I''ve seen is from Carl Lerche so if you know of more > > please point me at the references.> I was mistaken. I swear that I saw more than one report, but when I > went back and checked it was both of Carl''s threads. My bad. >Sheesh James, that''s how FUD starts. Next week will be the big post on how "Mongrel leaks like crazy, time to switch to ...." :-) If you run into memory leak problems though, let me know. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?