The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

very slow

Discussion in 'General Discussion' started by darkspadez, Apr 12, 2008.

  1. darkspadez

    darkspadez Member

    Joined:
    Feb 14, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    idk if this is right place to put but need help

    i have a dedicated box with latest cpanel/whm and just recently my sites started to go really slow and my cpanel/whm go fast any ideas what problem could be?
     
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    your sites are served by apache, while your cpanel is entirely another daemon. the reason as to why the websites are slow could be many. It could be a Dos Attack to port 80, it could be that the mysql on your server are tweaked in order to perform well for increased access [in case your website uses mysql], The reasons are several and it is rather impossible to comment on this unless we have more details. You can obviously see the number of connections to apache with

    #netstat -apn | grep :80 | wc -l
    ---------------------------------------------------

    To summarize, it will be better for you to ask your host to check on this for you in case you are totally new to this.
     
  3. darkspadez

    darkspadez Member

    Joined:
    Feb 14, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    could it be that one of my sites took to much traffic and make the ram go slow

    ( http://one9host.net )
     
  4. darkspadez

    darkspadez Member

    Joined:
    Feb 14, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    fixed for now but idk if it will stay. and idk how it got better
     
  5. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Not to pick nits, but do you mean it just got better on it's own?. If so then it's not fixed. If you have time then you should be investigating this NOW. The pressure is off you and it's the weekend, there must be some logs you can check or things you can watch throughout the day to see if this load comes and goes.

    If you didn't do anything to fix it then it's very possible it will come back.
     
  6. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    It should be checked if the website does uses a dynamic script cosuming so much resources.
    In WHM, under "server status" go to "CPU/Memory/MySQL Usage" and see what domains have the highest usage, if any.
    If your website use MySQL, it may be a not so good config of your dbs or even your script.
    Sometimes, too many unoptimized connections may be causing slow deployment of html final code.

    Also, you should check your mysql usage via ssh:
    Code:
    mysqladmin proc stat
    
    and see if there is too many open/sleep queries.
    Also check with "top -c" + [Shift][M] if there is any process using too many CPU/memory.

    What version of cPanel are you using?
     
  7. Billa

    Billa Member

    Joined:
    May 2, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
  8. zosorock

    zosorock Member

    Joined:
    Sep 12, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Do you guys see anything wrong on this output? I have a single website extremely slow out of 20+ I have on a server. The only difference is that this particular website has its own ip (because it needs an SSL certificate).

    Any help is much appreciated.
    Code:
     01:12:39  up 49 days, 13:11,  1 user,  load average: 0.24, 0.81, 1.18
    149 processes: 145 sleeping, 4 running, 0 zombie, 0 stopped
    CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
               total    0.9%    0.0%    1.4%   0.0%     0.0%    0.0%   97.5%
    Mem:   503844k av,  439984k used,   63860k free,       0k shrd,   11408k buff
                        305744k actv,   43372k in_d,    2688k in_c
    Swap: 2048276k av,  228284k used, 1819992k free                  160368k cached
    
      PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
    30011 root      23   8 31852  31M  2196 S N   0.0  6.3   0:16   0 spamd
    28707 nobody    19   4 29488  28M 16380 S N   0.0  5.8   1:19   0 httpd
    24000 mysql     21   6  113M  26M  1516 S N   0.0  5.4   1:41   0 mysqld
    24001 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:25   0 mysqld
    24002 mysql     26   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    24003 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    24004 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    24005 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:01   0 mysqld
    24006 mysql     21   6  113M  26M  1516 S N   0.0  5.4  12:54   0 mysqld
    24007 mysql     21   6  113M  26M  1516 S N   0.0  5.4   8:39   0 mysqld
    24008 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:05   0 mysqld
    24009 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:11   0 mysqld
    22461 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:04   0 mysqld
    25594 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:09   0 mysqld
    30738 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    30739 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    30740 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    30808 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    31133 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    31517 mysql     22   6  113M  26M  1516 S N   0.0  5.4   0:01   0 mysqld
    32234 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    32548 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    32549 mysql     22   6  113M  26M  1516 S N   0.0  5.4   0:01   0 mysqld
    32550 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:00   0 mysqld
    32563 mysql     21   6  113M  26M  1516 S N   0.0  5.4   0:02   0 mysqld
    30008 root      23   8 25504  24M  2108 S N   0.0  5.0   0:03   0 spamd
    30012 root      28   8 25504  24M  2108 S N   0.0  5.0   0:00   0 spamd
    28703 nobody    19   4 25004  24M 14464 S N   0.0  4.9   0:06   0 httpd
    28713 nobody    19   4 22840  22M 12352 S N   0.0  4.5   0:09   0 httpd
    28715 nobody    19   4 22356  21M 11608 S N   0.0  4.4   0:08   0 httpd
    28702 nobody    19   4 22256  21M 11804 S N   0.0  4.4   0:06   0 httpd
    28706 nobody    19   4 21648  21M 11152 S N   0.0  4.2   0:09   0 httpd
    28704 nobody    20   4 21224  20M 10688 S N   0.0  4.2   0:08   0 httpd
    28705 nobody    19   4 21152  20M  7568 S N   0.0  4.1   1:22   0 httpd
    28712 nobody    19   4 17340  16M  7848 S N   0.0  3.4   0:08   0 httpd
    29414 nobody    19   4 14320  13M  4272 S N   0.0  2.8   0:05   0 httpd
     9869 named     25   0 15196  12M  1060 S     0.0  2.4   0:00   0 named
     9870 named     15   0 15196  12M  1060 S     0.0  2.4 473:42   0 named
     9871 named     15   0 15196  12M  1060 S     0.0  2.4   6:56   0 named
     9872 named     15   0 15196  12M  1060 S     0.0  2.4 100:22   0 named
    
     
Loading...

Share This Page