DISQUS

Fred Brunel: Trouble With Rails and Ruby 1.8.5

  • Fred Brunel · 2 years ago
    **UPDATE**: I recently had a crash with Ruby 1.8.4. Apparently, it took much more time than with Ruby 1.8.5 but I really don't know what's happening. Maybe I should restart the Mongrel process once a day.
  • Michael D'Auria · 2 years ago
    Just stumbled across this post, make sure you have fastthread installed as a gem, that should correct your issues.

    sudo gem install fastthread

    Current version is 0.6.1 i believe
  • Michael D'Auria · 2 years ago
    Also, are you rotating out the production.log file? If so you are going to have to restart your Mongrels
  • Fred Brunel · 2 years ago
    Hi Michael,

    Thanks a lot for your help, I'll give it a try as soon as possible. If it actually fix the issue, I'm just wondering why this is not part of Ruby core or a mandatory dependency with Mongrel's gem.

    By the way, do you know if Ruby has to be compiled with pthread support (thing that I've done) because it's not enabled by default.

    Concerning the log file, I'm not rotating it at the moment...
  • Michael D'Auria · 2 years ago
    I honestly never change any of the default options. Just the usual configure, make && make install.

    That's interesting that you are seeing this issue and are not rotating logs. Perhaps you should email the Mongrel mailing list and Zed will chime in.
  • Fred Brunel · 2 years ago
    Hi Michael,

    That's what I though concerning the installation procedure... Generally default settings are just fine.

    I followed your advices and I managed to get more stability but I had to downgrade lots of software...

    I'm now running with Ruby 1.8.4 + fastthread + Mongrel 0.3.13.3. I had the issue with Mongrel 0.3.13.4 and 1.0.

    Actually, the configuration I use is also the choice of one my hosting provider (http://a2hosting.com) where I also run some Rails apps...

    I'll try the Mongrel mailing list as you suggested.

    Thanks for your help.
  • Fred Brunel · 2 years ago
    I also have memory leak problems (using Mongrel or Webrick). I have some difficulties to investigate the issue.

    I found some introspection code that dumps objects state but it's not easy to find out.

    I you have suggestions.