daved82
daved82

Reputation: 23

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.

Thanks

Upvotes: 0

Views: 380

Answers (1)

Nick Messick
Nick Messick

Reputation: 3212

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.

Upvotes: 1

Related Questions