Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I manage a perl-based website in a shared-hosting environment. It's been online for several years, with no problem. The traffic is fairly low (several hundred hits per day - maybe 4000 hits per month, max.) My web hosting company recently upgraded the server to FreeBSD 8 (not sure what it was previously - FreeBSD 7 I guess?). With this upgrade, I went from perl version 5.8.8 to 5.12.2. Ever since this upgrade, I've been noticing intermittent failures. I'll occasionally get a 'server error', but if I click 'reload' the page loads normally. This happens maybe 1% of the time. It seems random, and is nearly impossible to reproduce. There's nothing in the error logs. However, it appears that I may be exceeding the host's per-process memory limits. But I don't understand why a page would load okay sometimes, but fail other times. For a given page, the memory requirement should be the same every time, right? Is there any tool available that might help debug which part of the script is using the most memory? I use a lot of cpan modules. Maybe there's a bug in one of them specific to 5.12.2, but how can I find/fix it? Has anyone else out there ever had a similar problem?

In reply to perl cgi shared hosting memory limit problem by scorpio17

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-06-19 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.