arrty
03-18-2002, 04:04 PM
Hello everyone,
I am facing a very big problem my server load is 5+ which is very bad. I will really appreciate any help about finding out which on of my users is overloading the server.
I have already found out that the server is being overloaded by sendmail and there is a script running called 'members.cgi' but becuase it is owned by nobody I don't know who is running it.
AudiBoy
03-18-2002, 04:07 PM
I would start by searching the server for that script? see who has it in thier cgi-bin, and go from there...
arrty
03-18-2002, 04:16 PM
thanks but i've already found the user. the support staff at InterServer told me how to find out.
First
pstree | grep sendmail
then
/scripts/simpleps | grep members.cgi
You should look at possibly using jail to make sure that they don't do that anymore..
arrty
03-18-2002, 05:24 PM
Originally posted by jic
You should look at possibly using jail to make sure that they don't do that anymore..
What is that?
MotleyFool
03-19-2002, 04:56 AM
If you are using FreeBSD you can use login.conf to limit the resources allocated to the script - I dont know if a similar feature exists in Linux [although common sense tells me there should be something similar]
Cheers
Balaji
fishface
03-19-2002, 10:34 AM
On the same subject, what if you don't know who or what script/s is causing high server loads ?
e.g is there any software out there which will isolate poorly written scripts, or indeed scripts that are using high resources. i don't fance sitting and watching "top" or "stat"outputs for hours on end.
jambler
03-19-2002, 06:15 PM
in responce to the jail post, here are some helpful URLs for you to look at.
http://docs.freebsd.org/44doc/papers/jail/jail.html
http://jailnotes.cg.nu/
http://www.gsyc.inf.uc3m.es/~assman/jail/configuring/quickguide.html#3
i would also look into switching from sendmail to qmail. alot less exploitable. if not, at least chroot sendmail. will more then likely save you work in the future.
jambler
03-19-2002, 06:17 PM
Originally posted by fishface
On the same subject, what if you don't know who or what script/s is causing high server loads ?
e.g is there any software out there which will isolate poorly written scripts, or indeed scripts that are using high resources. i don't fance sitting and watching "top" or "stat"outputs for hours on end.
you best bet is setting the users quotas in login.conf.