Memory error

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

On 8/17/06, Tim C. [email protected] 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 Thu, 2006-08-17 at 10:51 -0500, James L. wrote:

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 L. 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://mongrel.rubyforge.org/
http://www.railsmachine.com/ – Need Mongrel support?

Zed S. 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

On 8/17/06, Zed S. [email protected] wrote:

Reports of memory leaks have started popping up on the mongrel mailing
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 L. wrote:

On 8/17/06, Zed S. [email protected] 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 L. 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 …” :slight_smile:

If you run into memory leak problems though, let me know.


Zed A. Shaw


http://mongrel.rubyforge.org/
http://www.railsmachine.com/ – Need Mongrel support?