Hello, I''m just wondering if there could possibly be a memory leak with the latest pre-release? When I run it, the processes keep increasing in memory size and easily pass 200MB and eventually crash due to a lack of memory. Is anybody else having this problem? Thanks, -carl PS, Zed, I sent you two emails directly to your address with logs and other stuff. Let me know if you didn''t get them.
On Aug 16, 2006, at 3:09 PM, Carl Lerche wrote:> Hello, > > I''m just wondering if there could possibly be a memory leak with the > latest pre-release? When I run it, the processes keep increasing in > memory size and easily pass 200MB and eventually crash due to a lack > of memory. Is anybody else having this problem? > > Thanks, > -carl > > PS, Zed, I sent you two emails directly to your address with logs and > other stuff. Let me know if you didn''t get them. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >Hey Carl- I have been seeing memory leaks with the new version of rails out right now as well as edge. I don''t think its mongrel related. But to be sure, can you test your app with webrick and see if you still get the leak? My bet is you do still get it. I haven''tbeen able to pinpoint it but it is very annoying. My app runs fine in production biut in dev mode with mongrel or webrick it keeps eating memory until it fails to allocate with a fatal error and kills the processes. Do let me know if anyone figures out why the hell dev mode is leaking again. I though this was fixed a while ago but its happening again. I think it may have something to do with the new reloading code in dev mode but i haven''t been able to pinpoint it. Cheers- -Ezra
On Wed, 2006-08-16 at 18:09 -0400, Carl Lerche wrote:> Hello, > > I''m just wondering if there could possibly be a memory leak with the > latest pre-release? When I run it, the processes keep increasing in > memory size and easily pass 200MB and eventually crash due to a lack > of memory. Is anybody else having this problem? > > Thanks, > -carl > > PS, Zed, I sent you two emails directly to your address with logs and > other stuff. Let me know if you didn''t get them.Yes I got them carl, I''m looking them over when I get the chance. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
On Aug 16, 2006, at 7:06 PM, Ezra Zygmuntowicz wrote:> > Hey Carl- > > I have been seeing memory leaks with the new version of rails out > right now as well as edge. I don''t think its mongrel related. But to > be sure, can you test your app with webrick and see if you still get > the leak? My bet is you do still get it. I haven''tbeen able to > pinpoint it but it is very annoying. My app runs fine in production > biut in dev mode with mongrel or webrick it keeps eating memory until > it fails to allocate with a fatal error and kills the processes. > > Do let me know if anyone figures out why the hell dev mode is > leaking again. I though this was fixed a while ago but its happening > again. I think it may have something to do with the new reloading > code in dev mode but i haven''t been able to pinpoint it.I''m running it in production mode right now and I get the memory leaks. I also haven''t noticed a problem with memory leaks before I started using the pre-release. Maybe it''s related to rails 1.1.6? I just don''t know. -carl
On Wed, 2006-08-16 at 20:10 -0400, Carl Lerche wrote:> On Aug 16, 2006, at 7:06 PM, Ezra Zygmuntowicz wrote: > > > > Hey Carl- > > > > I have been seeing memory leaks with the new version of rails out > > right now as well as edge. I don''t think its mongrel related. But to > > be sure, can you test your app with webrick and see if you still get > > the leak? My bet is you do still get it. I haven''tbeen able to > > pinpoint it but it is very annoying. My app runs fine in production > > biut in dev mode with mongrel or webrick it keeps eating memory until > > it fails to allocate with a fatal error and kills the processes. > > > > Do let me know if anyone figures out why the hell dev mode is > > leaking again. I though this was fixed a while ago but its happening > > again. I think it may have something to do with the new reloading > > code in dev mode but i haven''t been able to pinpoint it. > > I''m running it in production mode right now and I get the memory > leaks. I also haven''t noticed a problem with memory leaks before I > started using the pre-release. Maybe it''s related to rails 1.1.6? I > just don''t know.Just a quick thought, but why don''t you put: GC.start Into an after filter on your application controller (the base controller you have for all your other ones). Simply forcing the GC this way might fix it magically. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?