Tuesday, 15 January 2013

ruby - How to find out why rails server hangs at 100%? -



ruby - How to find out why rails server hangs at 100%? -

can think of way find out our rails production server hangs? cpu @ 99% assume gets lost in while/for/each loop. unfortunately can't find candidate loop.

the problem not occur in development , our test suit has 100% code coverage.

we attaching ruby via gdb, didn't know go there. ideas?

once have attached gdb busy looping process phone call rb_backtrace gdb:

> phone call rb_backtrace()

the output rb_backtrace similar crash report, , output go log files similar standard ruby error backtrace.

from there should step closer solution since see in ruby code process stuck.

you can check out more tips here: http://isotope11.com/blog/getting-a-ruby-backtrace-from-gnu-debugger

ruby-on-rails ruby debugging gdb

No comments:

Post a Comment