It seems very low. This might be because of memory constraints on the server - each apache child ends up with a copy of Perl running inside it, so the system might end up swapping a lot. I consider mod_perl to be a hack and an inelegant solution; if your have 200 people on 56k modems downloading files slowly that's 200 apache processes, which contain 200 perl processes.

IMHO a far more elegant solution is that provided by FastCGI, or SpeedyCGI. With these solutions your cgi scripts are turned into daemon processes that listen on sockets for connections from your web server children. The Perl process quickly spits out the response, and is in the middle of a loop so is very quick. The drawback is that for optimum efficiency you should reduce all of the CGI scripts on your site into one big script.

With FastCGI especially, the web server becomes about as busy as it was serving flat files, so the amount you can serve will increase by an order of magnitude or more.

srand 3.14159; print join("",sort {rand 1<0.5}map{$_^"\037"}split m{ }x,"qmptk|z~wOzm??l]pUqx^k?j"),",\n";

In reply to Re: Apache Performance: Requests per second by mugwumpjism
in thread Apache Performance: Requests per second by Anonymous Monk

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.