Hello Monks,
I'm looking for some wisdom and insight into Apache 1.3 and mod_perl.
My boss and I got into a discussion about proper web server setup and how mod_perl is used and we both aren't very suave when it comes to web admin.
Here's the scenario:
Apache 1.3
MinSpareServers 10
MaxSpareServers 20
StartServers 20
MaxRequestsPerChild 10000
MaxClients 500
We're running into the problem where we've got 20 apache children processes running which keep getting larger and larger as perl outputs our dynamic pages, all of the code is stored in RAM which is allocated to each apache process.
We do a lot of serving of PDFs and the way it's done (I don't have the code in front of me, so forgive me) is something like:
while (<FILE>) { print @_; }
Would the size of the file be stored in memory along with the compiled code?
Also, any input on the Apache directives would be appreciated.
Thanks and all the best!
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.