View Full Version : Apache shuts down after a few seconds...
bluelaguna
2003-11-29, 15:15 PM
I've noticed that every time that I start apache, it shuts itself down after a few seconds. After looking at the error log, it says maxclients has been reached. I do however, doubt that 150 clients come to the server in a few seconds. Any ideas? I think it might be a customer, but I'm unable to suspend his account because Apache doesn't remain up long enough for me to access Ensim. Also, setting it 1500 crashes my server...
BlackNet
2003-11-29, 19:48 PM
Hello,
Someone correct me if i'm wrong but I thought the max maxclients for apache is 256.
A few things comes to mind, lack of drive space, a faulty module, bad module/compile and configuration errors. A few things to try, if you suspect it's a client/remote then firewall port 80 and start the server, if it runs ok then it's remove, if it still dies then it's a config/module issue.
Ed
Originally posted by bluelaguna
I've noticed that every time that I start apache, it shuts itself down after a few seconds. After looking at the error log, it says maxclients has been reached. I do however, doubt that 150 clients come to the server in a few seconds. Any ideas? I think it might be a customer, but I'm unable to suspend his account because Apache doesn't remain up long enough for me to access Ensim. Also, setting it 1500 crashes my server...
BlackNet is correct, the highest you can set MaxClients to is 256 without recompiling Apache.
You should be able to log into Ensim since the Ensim interface has it's own web server which is not connected to Apache at all to see which client is causing the most hits. You can also log in via SSH and view the logs.
bluelaguna
2003-11-29, 20:00 PM
Do you know what port, as I usually access ensim by http://server1.bluelaguna.net/admin. Also, I haven't configured my firewall yet, can i get some instructions on how to disable port 80?
I believe you can log in with:
https://ipaddress:19638/
To disable port 80 you'll need to log in to your server via SSH, su - to root and type:
iptables -I INPUT -p tcp --dport 80 -j REJECT
:)
bluelaguna
2003-11-29, 20:15 PM
The ensim link you gave me doesn't work.
Originally posted by bluelaguna
The ensim link you gave me doesn't work.
Sorry, I had a couple of numbers backwards. Post edited.
The port is 19638. :)
bluelaguna
2003-11-29, 20:26 PM
"The requested page could not be found"
Now I'm scared...
Originally posted by bluelaguna
"The requested page could not be found"
Now I'm scared...
Weird..
https://bluelaguna.net:19638/webhost/rollout/welcome
It works for me. :confused:
bluelaguna
2003-11-29, 20:38 PM
Ok, after disabling port 80, apache is working. So, how to I re-enable it now?
BlackNet
2003-11-29, 20:47 PM
Hello,
# Flush the chains
# Flush all tables
"$IPTABLES" -F
NOTE: if you have any type of firewall running you need to restart it.
Now if apache is working great with port 80 disabled I would do something like ssh to the box and run lynx localhost to see if it would still die. Other than that it does appear it's some client/remote. Another thing worth mentioning if apache overloads the box the service will shut down. I personaly would be concerned with why there's a large amount of traffic going to the server. Apache works great and the default config is for something like under 4-5 virtual servers. anything over that you need to do some performance tuning.
Ed
bluelaguna
2003-11-29, 21:44 PM
Alright, i'm good now, suspended a member and it's working now...
BlackNet
2003-11-29, 21:45 PM
Hello,
AHHH yes nothing like abusers, er users I think the politicaly correct term is :)
Ed
BlackNet
2003-11-29, 21:59 PM
bluelaguna,
Some stuff you may be interested in.
http://httpd.apache.org/docs/misc/perf-tuning.html
Ed
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.