From: Robert Klemme Date: 2003-12-08T23:02:03+09:00 Subject: Re: Ruby blocks... forever "Nathaniel Talbott" schrieb im Newsbeitrag news:FCD7172F-2984-11D8-9E0C-000A95CD7A8E@talbott.ws... > Ruby 1.8.1preview2, running on Debian Linux. Server is WEBrick based, > and the main extensions used are Ruby/ODBC and Ruby/Postgres. > > I just tried to put the server in to production (approximately an > exponential increase in users, although it was done at a lower-traffic > time of day) and Ruby decided to hang on me. Here's the appropriate > line from top: > > PID USER RSS WCHAN FLAGS LC STAT %CPU %MEM TIME > COMMAND > 16419 se 15M rt_sigsus 40 0 S 0.0 1.7 24:52 server > > Although I'm not sure, I think the WCHAN indicates that the process is > blocked waiting for something to happen. What, I don't know. > > I suspect Ruby/ODBC as the culprit, but here are my questions: > > 1. What could cause such a hang? Where should I even begin looking? Database transaction deadlocks > 2. The process is still sitting there, doing nothing. Is there any > more information I can get out of it before I kill it? Hm, dunno. robert