Alright, here are some more outputs of the log for the latest pre- release of mongrel. I''m just copying the relevant stuff: ERROR reading http body: Socket closed or read failure Mon Aug 14 00:00:02 CDT 2006: ERROR: undefined method `rewind'' for nil:NilClass /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 221:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 555:in `process_client'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 664:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 664:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 651:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ configurator.rb:267:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ configurator.rb:266:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails: 127:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ command.rb:203:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:233 /usr/local/bin/mongrel_rails:18 Mon Aug 14 10:39:55 CDT 2006: ERROR: failed to allocate memory /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 536:in `readpartial'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 536:in `process_client'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 664:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 664:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: 651:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ configurator.rb:267:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ configurator.rb:266:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails: 127:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ command.rb:203:in `run'' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:233 /usr/local/bin/mongrel_rails:18 [FATAL] failed to allocate memory Also, what does it mean when I see a bunch of gibberish in the log file like as follows? You mentioned base64 stuff, how is it sent to the log file? I tried to decode a line and I get the following: ''"GIF89aM\0009\000\367\000\000\000\000\000\377\377\377\037\037 \203_d \304\227\235\246{\204\216kr\256\211\221\255\233\240\225nz\233u"'' Thanks, -carl R0lGODlhTQA5APcAAAAAAP///x8fIINfZMSXnaZ7hI5rcq6Jka2boJVuept1 gUs2PqGCjm5QXF5BTp9zjoNtgY9/jol5iSMgIx8dH/nv+SAfINnX2R4YH3dl ehgTGZqJnaKRpWdaaisjLS4lMVRGWSsgMBsVHh8dIMnFy1tSYXpxgWtjcjky QKWerEdESnh1e1hWWk1GVh4YJl9VbX5yjn16gSUfLikjMjMuO42DnB0bICQi JywqL768wTUtQiwkO05EYEQ8VV1ZZRsaHbWvwTw6QEFAQ2dgeC8sNoeBlVhR a2xmfM/L2j4zXZeNtZybnx4ZLxgWH0dBWiknMH54kXRvhZOOo/f1/jo2SSAe KCYkLkRBUFRRYB0cIXh0hx8eI3x4izU0OWVkaa2ssWJfcGxqdTYyS1JOZnVw kbWt3U1KXCEgJuXj8B8dLCMhMCknNp2ZttvW+V5ca0lITy8sRWBcgUlGYi4s PGtnhyQjK4KAknJxeVhVdE9OWDAuThwbKSQjNGpnlyAfLD08S1BPX6Siv9LQ 8jo5VCopPKSi23FwjH9+ns/O+8vK8B8fSUBAahcXIyAgL4aGwxoaJDAwQCAg Kbu76YaGpx0dJI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jSw1xNGHKoVgYgkUchCS4h57NKJpI528008695DjTj/8tNkmBiJoIAIK JXCQAwkRyP8lww0e5NCgkg5eQA098zgIzzFhvKEDHEnQUkghgECSKSBXpBGJ
On Mon, 2006-08-14 at 14:25 -0700, Carl Lerche wrote:> Alright, here are some more outputs of the log for the latest pre- > release of mongrel. I''m just copying the relevant stuff: >Carl, what the hell are you doing to my software. :-) Nah, this is good, but I''m really curious what your app is, it seems to really stretch boundaries.> ERROR reading http body: Socket closed or read failure > Mon Aug 14 00:00:02 CDT 2006: ERROR: undefined method `rewind'' for > nil:NilClassAh, right before this should have been a socket read failure message. Can you send that on to me. I''ve fixed this and will do another pre-release. Also, does this crash the server? It shouldn''t.> > Mon Aug 14 10:39:55 CDT 2006: ERROR: failed to allocate memory > /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb: > 536:in `readpartial''Ok, you''re on your own here. You''ve basically run out of ram so--kaboom! If you have rails actions that are loading tons of data, consider forcing that data =nil and call GC.start. Before and after filters are good for this.> Also, what does it mean when I see a bunch of gibberish in the log > file like as follows? You mentioned base64 stuff, how is it sent to > the log file? I tried to decode a line and I get the following: > ''"GIF89aM\0009\000\367\000\000\000\000\000\377\377\377\037\037 \203_d > \304\227\235\246{\204\216kr\256\211\221\255\233\240\225nz\233u"'' >Looks like it''s sending an image, but I''ve no idea why it''d put that int here since I don''t have the full log. It could mean that your configuration isn''t setup properly since Mongrel seems to be serving files. I''d like to find out why you get this message, so if you can send me a zip of your logs and maybe a detailed description of what your app does then I can try to find out what causes those. Send it to me off list so that you can keep it a secret (if you need to). -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?