DISQUS

DISQUS Hello! Fred Brunel is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Trouble With Rails and Ruby 1.8.5

Started by Fred Brunel · 10 months ago

I recently had to write and deploy a custom Rails app for a customer. When it was time for me to install the dedicated server, I looked for which Ruby version to install. I naturally went for the latest stable version of Ruby: 1.8.5. Unfortunalety I quickly ran through serious trouble with this ... Continue reading »

7 comments

  • **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.
  • 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
  • Also, are you rotating out the production.log file? If so you are going to have to restart your Mongrels
  • 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...
  • 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.
  • 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.
  • 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.

Add New Comment

Returning? Login