coight
05-25-2002, 07:41 PM
Is this possible?
![]() | View Full Version : Automatically Kill Runaway httpd processes? coight 05-25-2002, 07:41 PM Is this possible? rfxn 05-26-2002, 02:18 PM Sure, easily done with some perl or sh scripts - what type of processes are you looking to kill ? - Ones with exssesive CPU usage ? - One with exssesive MEM usage ? - Or both ? i can easily tailor a script to your needs just tell me what you need :) cabalstudios 05-26-2002, 06:31 PM Originally posted by rfxn Sure, easily done with some perl or sh scripts - what type of processes are you looking to kill ? - Ones with exssesive CPU usage ? - One with exssesive MEM usage ? - Or both ? i can easily tailor a script to your needs just tell me what you need :) rfxn, I need one with both, can we discuss this issue? Imran coight 05-27-2002, 02:03 AM Yes same, I need both also. blazenet 05-27-2002, 03:31 AM Yeah, I'm also very interrested ;) HostOnFly 05-27-2002, 04:50 AM You have to use resource limits (man setrlimit) instead of perl scripts. AussieHosts 05-27-2002, 05:12 AM Robert, Stuart has one running across the board on our servers, which lets us know when anything needs some attention. Drop him a line. Cheers Gary coight 05-27-2002, 10:12 AM Thanks Gary, I will do that don't wan't him pushing it as he is still finishing off that script :) rfxn 06-21-2002, 11:35 PM 'I can install such a script with user definable CPU and Memory percentage usage ' im sadended that i look back upon some posts and i see people trying to seek profit with such simplistic tasks - tisk tisk tisk <<MOD NOTE: The post referred to above has been removed>> below is a link to a tar-gziped archive of 2 .pl files , with user definable load (each script respective for cpu/mem). Witch would acomplish the same as the above posters '$25 scripts' http://magnum.r-fx.net/downloads/chk.tar.gz and yes resource limiting is preferable however does not always acomplish the task at hand. For details on PAM resource limiting check out http://www.webhostingtalk.com/showthread.php?s=&threadid=45887 AussieHosts 06-21-2002, 11:55 PM Originally posted by rfxn im sadended that i look back upon some posts and i see people trying to seek profit with such simplistic tasks - tisk tisk tisk You are charging for web hosting mate...see the difference? For some people, all they do is code. Why cast aspersions on someone who does so with a view to actually paying some bills of their own? Cheers Gary rfxn 06-21-2002, 11:59 PM I am a coder and it is for the most part what i do all day, either Delphi or VC++ development and at times stragiht C dev work. Im an opensourced freak, i understand you need to put food on the table but make profit on such things that deem the effort of such profit. When your talking simplistic tasks its just a ripoff to charge someone. AussieHosts 06-22-2002, 02:58 AM Originally posted by rfxn I am a coder and it is for the most part what i do all day Yet choose to make comments like those above, about another coder. Right...so who pays your bills then? The fact that I know Stuart, and know that nothing he does is a simplistic task by the time has finished with it, is irrelevant. Datacentres are speaking to him about his work now, in site license quantities, because the end result wont be a simplistic one. I'm just suggesting that as sad you may be, perhaps you need to think of your fellow coders a little... Cheers Gary Haze 06-22-2002, 11:42 PM Both of the scripts included in the zip file seem to be the same. That is the code is basically identical. The only difference I can see is the load is set different for each. Was the chk_mem.pl included not the correct script or am I missing something? Thanks a tonne by the way. driverdave 06-23-2002, 01:57 AM Apache::Watchdog::RunAway - Hanging Processes Monitor and Terminator http://search.cpan.org/doc/STAS/Apache-Watchdog-RunAway-0.3/RunAway.pm Download it here http://www.cpan.org/authors/id/S/ST/STAS/ Might be better to attack the cause of the runaways. I recently had a bout of those, and could not figure it out what was causing them. Well, a GET on an image file was causing them, but I don't know why. Wiped the system and started fresh :( rfxn 06-23-2002, 02:49 AM Haze, the difference between the 2 scripts is that of the load setting and the -o options in the PS statment , within the script. And , Editor - your presumptiouse statments are of no relivence to me - i could care less if your friend (allbe im sure he is a great coder) has a dialog with datacenters. If one must boast about their acomplishments to justify such a petty debate then i feel sorry for you both. I simply stated orignaly nothing more than , in a sence why charge someone for such a simple task. Perlboy's post shows in a fashion that his scripts would be that of simplistic ones. Putting food on the table is of cource important but why charge someone for something others have already done/give for free. I can understand if aid is needed with the script or some other type of related support their-in, to be charged for. Ahh such fun debates get aroused on WHT, gota love it :rolleyes: mrzippy 08-28-2002, 11:57 PM My two cents: I have no problem paying for ANYTHING that I deem useful to accomplishing a task. (Assuming I'll be using whatever I'm paying for to make money myself). Do you pay someone to wash your car? Why? It's so simple to just do yourself! Oh course, anyone can wash a car... but I will pay someone to wash my car if I'm in a rush, need a really good job, or whatever. The point I'm trying to make is that I really don't care if a script I'm buying just outputs "hello world". If it solves my problem, and helps me to make money, then I'll pay for it. I do believe in open-source, but I also fully support people who want to make money off their scripts.. even if they're "simple" scripts. If I can find the same script for free, then of course I won't pay for it.. but sometimes it's easier/quicker to just pay then to dig around and find one, test it, etc.. So to all you coders out there who are thinking about or trying to sell your "simple" scripts.. please do! It's a free world, and people don't have to buy them if they don't want to. There's nothing wrong with putting a price on your labor. Cheers! AussieHosts 08-29-2002, 12:08 AM Good outlook MrZippy. I can certainly attest to Stuart's work with process watching/monitoring...and to his sysadmin work overall. It's one thing to scout around hotscripts for a quick fix for something, but it's another to get someone dedicated to the task to put something together and then support it with updated/changes who expects to be paid for their time. Cheers Gary bitserve 08-29-2002, 08:37 PM [nice mode] Chicken 08-29-2002, 10:12 PM Correct, and this issue has been addressed off-board :angry: StevenG 08-30-2002, 09:12 AM rfxn I hope that your coding software spells better than you do :D You may have a job on your hands otherwise LOL :D |