hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Kill Process Automatically
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Kill Process Automatically

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-28-2002, 07:10 AM
coight coight is offline
Web Hosting Master
 
Join Date: Nov 2001
Posts: 5,383

Kill Process Automatically


We are trialing a new system inhouse currently and I was personally wondering if it would be possible to run a cron, or command and if a certain process is using X% of the processor it will automatically terminate the process.

Is this possible?

__________________
Clustered Hosting With Continuous Data Protection (CDP)
http://www.solidinternet.com
8 Years of hosting excellence!

Reply With Quote


Sponsored Links
  #2  
Old 02-28-2002, 09:06 PM
ReliableServers ReliableServers is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 1,041
Yeah there are few scripts out there to do just that I believe.

Reply With Quote
  #3  
Old 02-28-2002, 09:27 PM
coight coight is offline
Web Hosting Master
 
Join Date: Nov 2001
Posts: 5,383
Quote:
Originally posted by Dilhole
Yeah there are few scripts out there to do just that I believe.
For example

__________________
Clustered Hosting With Continuous Data Protection (CDP)
http://www.solidinternet.com
8 Years of hosting excellence!

Reply With Quote
Sponsored Links
  #4  
Old 02-28-2002, 10:31 PM
cubed cubed is offline
Registered User
 
Join Date: Oct 2001
Posts: 32
eheh

Reply With Quote
  #5  
Old 02-28-2002, 11:09 PM
toro toro is offline
Web Hosting Guru
 
Join Date: Feb 2002
Location: South California
Posts: 293
Hey,
Write a script to run 'ps aux', read the output line by line, at each line take the CPU usage, convert the string to a digit (float), compare it to a set maximum, if the number is larger, kill the pid from that line. It's fairly simple to do (even in C).

__________________
Matt M.
Staminus Communications, specializing in DDoS mitigation services and high bandwidth hosting
http://www.staminus.net
866-323-8306 (+1-949-202-5305)

Reply With Quote
  #6  
Old 03-01-2002, 03:51 AM
twrs twrs is offline
Web Hosting Master
 
Join Date: Jun 2001
Posts: 960
I'm also interested in any such script. Anyone knows how to get it?

Reply With Quote
  #7  
Old 03-01-2002, 07:10 AM
dhlsg dhlsg is offline
Disabled
 
Join Date: Mar 2002
Location: NZ
Posts: 61
I know this isn't what you are after but it does explain some things

http://www.r-fx.net/lprl.php

Steve

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Tenzing Launches Data Assure for Automated Data Backup Web Hosting News 2012-09-24 10:53:35
Protecting Your Intellectual Property: The Value of Patents Web Hosting News 2012-03-21 10:07:53
Web Host Hosting Ireland Launches Online Backup Service CloudBox Web Hosting News 2011-09-27 20:00:52
Q&A: Ryan Ozimek of Open Source Matters Talks Joomla 1.7 Web Hosting News 2011-08-04 21:37:17
Open Source Developer Joomla Releases 1.7 CMS with Enhanced Security Tools Web Hosting News 2011-07-19 18:51:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?