Debugging Stuck Ruby Process - Workling\Starling
We have a rails app that about every 24 hours runs the load average on the machine well beyond 5. It looks like a stuck Ruby process specifically related to a background process running to manage event and calendar reminders. It seems like killing it and restarting the app resolves temporarily:
dd 6554 1 0 00:38 ? 00:00:15 /usr/local/bin/ruby /usr/local/bin/starling -d -p 15151 -P /u/apps/dd/shared/starling.pid -q /u/apps/dd/shared/starling -L /u/apps/dd/shared/starling.log
Is there anything better than debugging with GDB? I don't see much useful info there.
- Ruby 1.8.7 x86_64
- Rails 2.3.9
- Eventmachine 1.0.3
- Workling 0.4.9.9
- Starling 0.10.1
- CentOS 5.9
Pretty much everything you listed is super old. You're problem could be as simple as memory leaks that have been fixed in the years since all of those versions were released.
Otherwise, you could try out some Ruby profile tools such as ruby-prof.