I'm facing a problem that might be deep, or might be a simple RTFM (without knowing what FM to R), and I'm hoping for some help trimming the search space.

In a web application I'm working on, I've noticing that some Apache mod_perl 2 processes are exiting after serving a single request. Since we're using https, I'd rather keep them alive longer to avoid the overhead of setting up a new SSL connection for every request. I'm reasonably sure that it isn't something obvious (e.g., a die() or exit() deep in some method), so I'm crafting some experiments to help make sense of the situation.

What can cause a mod_perl process to exit after serving a single request? Where are good places to start looking

(Apache is configured to expire a child process after it serves several thousand requests, so that isn't it.)


In reply to What causes mod_perl processes to exit? by dws

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.