Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 15 of 15
  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    22

    Default Is This A DDos Attack?

    Hi,

    Nowadays my server frequently has a high load but i cant find what causes this.I am using an AMD Dual Core Dual Opteron 275 CPU with 2 GBs of RAM.

    I am using CSF and here is the mail sent from CSF at the moment of high load.cPanel said at ticket that this is a ddos attack.Is it right?

    http://www.bilhost.com/load.txt

  2. #2
    Registered User
    Join Date
    Feb 2007
    Posts
    53

    Default

    I'm no expert, but it looks like it could be. cPanel are experts though, and are most likely right.

    During the high load, do you have problems connecting to the server and/or slow download speeds?

    Ben

  3. #3
    Member
    Join Date
    Sep 2005
    Posts
    22

    Default

    When the load is high we cant access the sites but i can access the server via ssh.When i stop apache it goes low.But when i open it again it goes high.But it is so strange because CSF doesnt ban anyone at the high load time.Also i dont do anything other than restarting apache several times.Then it returns normal itself..

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    That doesn't appear to be an email from CFS to me.

  5. #5
    Member java_dude's Avatar
    Join Date
    Apr 2004
    Location
    The Good Ol' U.S. of A.
    Posts
    28

    Default

    Run this command and see if there is anyone connected with an excessive amount of connections:

    Code:
    netstat -tn --inet 2> /dev/null| grep ":80" | awk '/tcp[\ ]*[0-9]+[\ ]*[0-9]+[\ ]+[^\ ]+[\ ]*[^\ ]*/ { print $5; }' | cut -d":" -f1 | sort | uniq -c | sort -n
    Do you have any PHP/MySQL scripts on your server? If so, do you have nay cache software like APC? I had a similar issue with my forum a couple of years ago and installing eaccelerator helped tremendously.

  6. #6
    Member
    Join Date
    Sep 2005
    Posts
    22

    Default

    There are so many PHP/MySQL sites on this server since we are a hosting company.

    I have tried to install cache scripts like eaccelerator but couldnt make it work with phpsuexec.It made us to have internal server error on all sites.

  7. #7
    Member
    Join Date
    Sep 2005
    Posts
    22

    Default

    Quote Originally Posted by Infopro View Post
    That doesn't appear to be an email from CFS to me.
    The subjects of these e-mails are like this.

    lfd: High 5 minute load average alert - 7.35

  8. #8
    Member koolcards's Avatar
    Join Date
    Oct 2003
    Location
    Tampa, Fl
    Posts
    146

    Default

    Your process list is ranked by PID rather than CPU load but the highest usage appears to be mysql:

    mysql 3148 7.4 14.1 427004 293608 ? S<l Sep09 170:28 \_ /usr/sbin/mysqld --basedir=/
    --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/lt.bilhost.com.pid --skip-external-locking


    There doesn't seem to be any pattern in the users under apache processes, although the logs would give you a better idea, so it wouldn't appear that any one site is getting slammed. Someone could hit a users mysql 'search' fast enough on a large database to create these kind of problems and but you have to eyeball the apache processes or apache logs to find it.

    try increasing the amount of memory mysql is allowed to use for searches and sorts in /etc/my.cnf. Maybe increase the number of connections also.

  9. #9
    Member
    Join Date
    Sep 2005
    Posts
    22

    Default

    Last night i recompiled apache without phpsuexec and then installed eaccelerator.It went good till now.But now the load is so high again.

    I also find that it always happenes at the same time each day.So i think it is a cron issue.How can i see users's cron jobs?

  10. #10
    Member koolcards's Avatar
    Join Date
    Oct 2003
    Location
    Tampa, Fl
    Posts
    146

    Default

    Quote Originally Posted by Baris View Post
    Last night i recompiled apache without phpsuexec and then installed eaccelerator.It went good till now.But now the load is so high again.

    I also find that it always happenes at the same time each day.So i think it is a cron issue.How can i see users's cron jobs?
    All crontab's are under "/var/spool/cron" and I'd look at 'root', if I were you. If you have backup's enabled (and I assume you do), see when they run.
    The next thing to check would be when the stats run for each site and what kind of stats you have enabled. Some take up more system resources than others.

  11. #11
    Member
    Join Date
    Sep 2005
    Posts
    22

    Default

    I am about to lose my mind..I cant find any cron running at around 1 pm.But it always happen at that time.

    Backup runs at 3 AM and logs run between 00-02 AM

    What may cause this problem??

  12. #12
    Member koolcards's Avatar
    Join Date
    Oct 2003
    Location
    Tampa, Fl
    Posts
    146

    Default

    Quote Originally Posted by Baris View Post
    I am about to lose my mind..I cant find any cron running at around 1 pm.But it always happen at that time.

    Backup runs at 3 AM and logs run between 00-02 AM

    What may cause this problem??
    Lots of things, depending on your sites, hardware, traffic, scripts, any number of things.

    Open an SSH session around that time and leave 'top' running. Watch for the CPU load to go up or a surge in the number of certain types of processes, swap increasing, etc. Could be a user updating his forum database and rebuilding his pages every day at that time.

  13. #13
    Member
    Join Date
    Sep 2005
    Posts
    22

    Default

    I want to commit to suicede..I am really tired of this stupid problem..

  14. #14
    Member
    Join Date
    Sep 2007
    Posts
    20

    Default

    Quote Originally Posted by Baris View Post
    I want to commit to suicede..I am really tired of this stupid problem..
    time to get out of the hosting business, I think ......

  15. #15
    Member
    Join Date
    Dec 2006
    Posts
    10

    Default

    If I were you I would check out the user: inanilma account.

    There seems to be a few PHP processes from that user adding to the server load and they could be the source of the problem.

Similar Threads & Tags
Similar threads

  1. Is this DDOS attack?
    By Bahram0110 in forum Security
    Replies: 8
    Last Post: 02-08-2011, 01:59 PM
  2. DDoS attack
    By Zion Ahead in forum Security
    Replies: 5
    Last Post: 11-16-2009, 05:20 PM
  3. ddos attack?
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-02-2007, 07:44 PM
  4. is this a DDOS attack??
    By kistler in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-18-2007, 08:04 AM
  5. DDOS Attack
    By web12 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-03-2003, 04:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube