Not using mod_perl, just using Perl v5.8.8
Also using Apache::Session::MySql

So when I view 'top' from SSH I see something like this when I notice a bunch of hangs:
26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi # Added these to show what it looks like when there are issues: 26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi 26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi 26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi 26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi 26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi 26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi 26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi 26034 holytea 18 0 13544 10m 2096 S 16 0.5 0:00.49 web.cgi #There are a bunch in here like that, of course all have their own pid +, I also see a bunch of httpd processes. 10099 nobody 15 0 158m 17m 4640 S 3 0.9 33:22.20 httpd + 26001 root 15 0 2172 1036 792 R 1 0.0 0:00.16 top + 1 root 15 0 2044 596 512 S 0 0.0 0:04.62 init + 2 root RT 0 0 0 0 S 0 0.0 0:09.06 migration +/0 3 root 36 19 0 0 0 S 0 0.0 0:00.21 ksoftirqd +/0 4 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/ +0 5 root RT 0 0 0 0 S 0 0.0 0:08.04 migration +/1 6 root 34 19 0 0 0 S 0 0.0 0:00.39 ksoftirqd +/1 7 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/ +1 8 root RT 0 0 0 0 S 0 0.0 0:10.65 migration +/2 9 root 34 19 0 0 0 S 0 0.0 0:00.17 ksoftirqd +/2 10 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/ +2 11 root RT 0 0 0 0 S 0 0.0 0:07.09 migration +/3 12 root 35 19 0 0 0 S 0 0.0 0:00.24 ksoftirqd +/3 13 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/ +3 14 root 10 -5 0 0 0 S 0 0.0 0:00.31 events/0


So what I need is for web.cgi and index.cgi to be monitored so that if they run too long they are automatically 'killed'. I know a kill daemon would be the way to go, but I have no idea how to go about it. I've been looking for a few weeks but cannot find anything definative.

thx,
Richard

In reply to Re^2: Catching processes stuck in an apparent loop by powerhouse
in thread Catching processes stuck in an apparent loop by powerhouse

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.