Portal Home > Knowledgebase > Articles Database > Apache Being very Slow Even After No Load
Apache Being very Slow Even After No Load
Posted by PNH-Madih, 05-04-2013, 01:44 PM |
In many of times my server become slow, I am using Dual Xeon E5-2620 with 32 GB RAM, With SSD Hard Drives, not sure why server speed is not good, specially websites are opening very slow, the server load is below 2, approx 1.8 all the time.
Is it due to DDoS Attack? Anyone can guide me what is happening?
I am also using CloudLinux as OS, I ma using default configuration.
I am using Litespeed, sites were very slow, after that when I shifted to Apache, the server went down.
|
Posted by LankapartnerHost, 05-04-2013, 01:50 PM |
Should be a DDOS...
|
Posted by PNH-Madih, 05-04-2013, 01:52 PM |
Thank You LankapartnerHost, is there any way to find that? Any commands?
|
Posted by OvcaX, 05-04-2013, 02:01 PM |
Instal some monitoring software (let's say munin) that looks at number of open apaches, number of connections...
This will give you a bigger picture of what's wrong.
On other hand it may be that your script is connecting to outside resource that is slow?
|
Posted by PNH-Madih, 05-04-2013, 02:04 PM |
No it is not script, I have some websites, I have noticed that server is slow then usual, although load is below 2. I have used munim but I am never able to understand its graphs.
|
Posted by LankapartnerHost, 05-04-2013, 02:06 PM |
netstat -an |grep :80 |wc -l
|
Posted by MNCHOST - Chris, 05-04-2013, 02:12 PM |
Did you check server logs ? and Could you able to post here output (you can hide domain name and other sensitive detail) .
|
Posted by PNH-Madih, 05-04-2013, 02:31 PM |
Following are the results of commands:
|
Posted by LankapartnerHost, 05-04-2013, 02:42 PM |
Normaly how many people should online this time on your site(s) ?
|
Posted by PNH-Madih, 05-04-2013, 02:44 PM |
It is normal, 1500 to 10,000 approx.
|
Posted by LankapartnerHost, 05-04-2013, 02:47 PM |
Pls run this command and see the result as well
netstat -ntp | grep ":80" | awk '{print $5}' | cut -d: -f1 | sort |
uniq -c | sort -n
|
Posted by Infinitnet, 05-04-2013, 02:55 PM |
Did you disable HostnameLoopups in your Apache config? Doesn't look like DDoS to me just yet.
|
Posted by tuxandrew, 05-05-2013, 02:19 AM |
Hey,
Do you have any software firewall installed(csf/apf)?. If you feel that there are more incoming connections to the server then you can limit this in firewall config or just implement DDOS protection software MOD_Evasive(for apache)
Also monitor the top process and find if any user/script is consuming heavy CPU?, then check the scripts closely and optimize it.
If you are still facing problems,
Can you plz get back to me with a results after running the command
$ netstat -ntp | grep ":80" | awk '{print $5}' | cut -d: -f1 | sort |
uniq -c | sort -n
or
or output of the command $top -c
Let me know your thoughts.
|
Posted by OvcaX, 05-05-2013, 07:46 AM |
Can you show the munin graphs for load, disk latency, apache and memory?
|
Add to Favourites Print this Article
Also Read