Re: mod_ruby with Apache 1.3
Junk Mail <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Shugo Maeda wrote: >>>95% CPU, and never dies. Apache as a whole can "carry on", serving other HTML requests, etc. > Can you attach gdb to that process like this? http://purepistos.net/tmp/gdb1.txt Looking at the stack trace, it doesn't look very helpful to me, but I hope you can get something out of it. :) Here's what I did that triggered it. Unfortunately, there are a number of steps that are confounded, so... we can only guess which of them causes the problem. Furthermore, I tried to repeat the exact same steps, but... the problem is no longer occurring by that trigger. :( Anyway, here's what I did: - Browse to a login-type page on my site. - Enter login data, submit via HTTP POST/GET - rhtml page receives the login info, tries to check credentials against data in database - finds database not running - Apache gives a 500 error for the submission page - I start up the database - refresh the page in the browser - browser hangs for a while, so I check "top" for any problem processes - find an httpd process running at > 95% CPU At that point, I alerted my server admin, and he got the stack trace for us. So, I am not sure if it is the database connection failure that caused it, or the refresh of the page (which resubmits the form data), or if it's something else in those steps. I am beginning to suspect that if there is any sort of non-syntax error in the script, such as trying to open a file that doesn't exist, or failing to connect to a DB, then the problem happens. Maybe you could test these conditions yourself. I hope we can get this problem solved! :) Alex