2 Oct 2002 10:29
tux dies when using a module
Steve Simitzis <steve <at> saturn5.com>
2002-10-02 08:29:44 GMT
2002-10-02 08:29:44 GMT
hi there. i've been using tux successfully on a production web server for about two months. recently i wrote a simple tux module, similar to demo2.c, that serves files based on whether or not the browser has a particular cookie set. the purpose is to protect proprietary files, without rewriting all of apache's htaccess into tux. anyway, the module worked fine on my test server, but as soon as i ran it on our busy production server, one of the worker threads sucked up 99% of the CPU, and tux became useless. it was then impossible to kill any of the tux processes. i had to reboot the machine for it to return to sanity. when the machine came back up, i found this in /var/log/messages: Oct 2 00:58:07 sg1 kernel: Process tux (pid: 2068, stackpage=df649000) Oct 2 00:58:07 sg1 kernel: [<f89aa006>] flush_request [tux] 0x566 Oct 2 00:58:07 sg1 kernel: [<f89c7fc8>] threadinfo [tux] 0x268 Oct 2 00:58:07 sg1 kernel: [<f89a9227>] redirect_request [tux] 0x67 Oct 2 00:58:07 sg1 kernel: [<f89c7fc8>] threadinfo [tux] 0x268 Oct 2 00:58:07 sg1 kernel: [<f89a71a8>] tux_schedule_atom [tux] 0x18 Oct 2 00:58:07 sg1 kernel: [<f89a807b>] process_requests [tux] 0x8b Oct 2 00:58:07 sg1 kernel: [<f89c8114>] threadinfo [tux] 0x3b4 Oct 2 00:58:07 sg1 kernel: [<f89c7fc8>] threadinfo [tux] 0x268 Oct 2 00:58:07 sg1 kernel: [<f89c7fc8>] threadinfo [tux] 0x268 Oct 2 00:58:07 sg1 kernel: [<f89b2d05>] event_loop [tux] 0x75 Oct 2 00:58:07 sg1 kernel: [<f89c7fc8>] threadinfo [tux] 0x268 Oct 2 00:58:07 sg1 kernel: [<f89b4bcb>] __sys_tux [tux] 0x4eb Oct 2 00:58:07 sg1 kernel: [<f89c7fc8>] threadinfo [tux] 0x268(Continue reading)
Are you sleeping for 1000ms after each client request?
RSS Feed