Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: perl cgi shared hosting memory limit problem

by Anonymous Monk
on Jul 09, 2013 at 15:09 UTC ( [id://1043334]=note: print w/replies, xml ) Need Help??


in reply to perl cgi shared hosting memory limit problem

What tells you its the memory limit? Are you getting closer and closer to the limit on each refresh?

  • Comment on Re: perl cgi shared hosting memory limit problem

Replies are listed 'Best First'.
Re^2: perl cgi shared hosting memory limit problem
by scorpio17 (Canon) on Jul 09, 2013 at 15:50 UTC
    The web host has an 'account control center' web page. From there, I can see what they call 'resource logs'. It's a table that shows every time a process (in this case, my cgi script) gets killed because of some resource violation. All the violations are of type 'memory hogs user'. For the past week, I'm averaging about 10 violations per day. I can't see data for more than the past 7 days.

      Try logging the script parameters at the start of the script and a 'goodbye' message at the very end.

      For runs that get killed you should have the first message logged but not the last; so that'll perhaps give you an insight as to what parameters are involved when you get killed.

      Of course, if this is a mod_perl or fcgi type persistent environment, it may be the accumulation of many runs that causes death; in which case you would need to monitor and log the size(s) of any globals you use.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1043334]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found