Its not strictly true that mod_perl is handling the static content, it actually only handles those resources that it is configured to handle, however the mod_perl will be loaded for every new apache process that is forked to handle a request whether the mod_perl will be used in the processing of the request or not, now because an apache with mod_perl has a larger memory footprint than one without it , if you are serving more static content than that handled by mod_perl you are going to get a lot of large processes which don't really need to be that big. To this end some people will run an apache without mod_perl on port 80 to serve the static content and a second one with mod_perl to serve the dynamic content - the first proxying the requests to the second where appropriate. Of course if the server is only moderately loaded (in terms of it's free memory, swap usage and so forth) you probably won't even notice much difference if you have a mnod_perl apache serving your static content or not.

With Apache 2.0 and mod_perl in a threaded configuration the effects of the mod_perl loading can be mitigated by the use of "interpreter pools" whereby the perl interpreter is requested from a pool when mod_perl handles the request.

/J\


In reply to Re: mod_perl without separate config for static HTML? by gellyfish
in thread mod_perl without separate config for static HTML? by gunzip

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.