Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Looking for Leaks in all the wrong places

by Stegalex (Chaplain)
on Jun 09, 2002 at 21:01 UTC ( [id://172969]=note: print w/replies, xml ) Need Help??


in reply to Re: Looking for Leaks in all the wrong places
in thread Looking for Leaks in all the wrong places

Thanks Matts! And hey, I really enjoy using all your XML stuff too.

The process for identifying memory leaks looks like a real pain in the butt. After thinking about it for a while, I would be perfectly happy to just automatically reboot the server after CPU / Memory are depleted to a certain point.

So my new question is: What combination of CPU utilization / memory paucity should I use as the trigger to automatically reboot?

My system is a single processor Linux box with 750M of memory running Apache and Oracle with mod_perl.

~~~~~~~~~~~~~~~
I like chicken.

Replies are listed 'Best First'.
Re^3: Looking for Leaks in all the wrong places
by particle (Vicar) on Jun 09, 2002 at 22:50 UTC
    The process for identifying memory leaks looks like a real pain in the butt. After thinking about it for a while, I would be perfectly happy to just automatically reboot the server after CPU / Memory are depleted to a certain point.
    this is a really bad attitude to take towards your code. not only has matts given you great code which you compliment, but he's given you an outline for advanced debugging techniques he used in the same code you praise.

    instead of taking the opportunity to learn more about bugs that might be in your code (and software development in general) from someone who took the time to provide an detailed answer your question, you've decided to throw away his proven advice.

    if you feel his advice is over your head, and you would like to learn but don't think you're capable yet, say so. i'm sure other suggestions can be offered, including advice on your follow-up question. as it stands, your dismissive tone leaves me unsympathetic to your current situation.

    why would anyone here want to provide you with help in the future if you openly throw away such good advice?

    i certainly wouldn't.

    ~Particle *accelerates*

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Re: Re: Looking for Leaks in all the wrong places
by Matts (Deacon) on Jun 10, 2002 at 07:39 UTC
    You should *never* need to reboot the whole server - instead set MaxRequestsPerChild low (axkit.org has it at 100), and install something like Apache::SizeLimit to make sure you don't get one particular process going totally out of control.
Re: Re: Re: Looking for Leaks in all the wrong places
by thor (Priest) on Jun 09, 2002 at 23:11 UTC
    I agree with particle on this one. Who is to say that tomorrow you won't write another script with exactly the same problem your current one has? In that case, your server resources will become depleted twice as fast without an end in sight. Also, why be satisfied with code that you know is broken?

    thor

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-28 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found