Join the community today
Register Now

My service got suspended due CMM updates

Discussion in 'Virtual Private Server (VPS) hosting' started by sepulchre, Apr 17, 2015.

  1. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    upload_2015-4-17_1-24-27.png


    I am not sure what happened and I don't know what caused the problem. I wasn't aware of this until my service was supended and I couldn't access to my site (my site is a xenforo forum which is closed to guests).


    VPS CentOS 6.6 here

    Today I did (in this order):

    • CMM update to newest branch by using following code (from stable .07):
      Code:
      branchname=123.08centos7beta02
      wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip
      cd /usr/local/src
      unzip -o ${branchname}.zip
      rm -rf ${branchname}.zip
      rm -rf /usr/local/src/centmin-v1.2.3mod/
      mv centminmod-${branchname} centmin-v1.2.3mod
      cd centmin-v1.2.3mod
      chmod +x centmin.sh
      yum clean all
      ./centmin.sh
    • I updated from MariaDB 5.5 to 10.x via centmin.sh menu
    • I added php ssh2 extension by using these instructions.
    • I updated to php 5.6.8 via centmin.sh menu
    I am not sure what I did wrong and what I should do now.

    "Never change a running system..."
     
    Last edited: Apr 17, 2015
  2. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    10:50 AM
    Mainline
    10.2
    service php-fpm restart?
     
  3. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    No, do I need to do that and why and how? :D

    Btw, I updated php 3-4 hours later. The high server load began earlier as it seems.

    edit: restarted php-fpm now

    edit2:
    upload_2015-4-17_2-37-14.png

    It seems fine now.
     
    Last edited: Apr 17, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Who's your web host ? different hosts have different limits for server resource usage and some are more restrictive that others so it could just be their resource usage policy you tripped which may or may not be restrictive. If restrictive, then real solution would be finding a better web host. If not restrictive, then it's finding out what caused high cpu load.

    My mysqlmymonlite.sh script can help with that mysqlmymonlite.sh Addon | Centmin Mod Community README text file has instructions for setting up a cronjob to email you reports i.e. every 10/15min or every hour.

    If your web host has further stats tools, see if they can drill down to the time of high cpu load.

    More to learn
     
  5. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    Of course there are restrictions, this is why I got banned. The cpu usage was way too much. Usually it is 0.00 by average, when I do some installations it gets a bit higher, like 0.50 but yesterday it went up to 8 and stayed for a long time above 4, which is a valid reason to suspend an account. I don't blame my VPS host, their policy is clear. The problem is from my end and I just don't know what happened. My webhost ist VPSDime.
    I'll look into that, thanks.
    Well I got suspended right after those installations. I didn't upgrade everything at once, there is like 1-2 hours between all of them.
    So the time interval is like 6 hours.I upgraded everythig (within 1-2 hours) and went on idle. But it seems the server ran on high capacity for many hours and then they suspend me, which is fair of course. I just didn't realize the high cpu usage and why this happened.

    And I forgot to mention, that I also installed 1 Xenforo add-on which is called bd Cache. So it might be that maybe.
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    Thanks. Everything is fine now. So you don't need to start troubleshooting or something like that.
    And thanks for that linking.
    I have now a lot of stuff for reading and for the future I know now that I need some monitoring.
     
  8. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    Hey,

    now I have a question. I followed your recommendation and I am monitoring my cpu load using htop.

    When my forum was closed, I had a load average of 0.
    For 5 months it was like this.

    Now, yesterday after I opened my forum to the public, it jumped to 1.10 while using 40% of CPU%.

    Is this a normal behaviour?

    Code:
      1  [###******                     21.7%]     Tasks: 27, 43 thr; 1 running
      2  [#####**********               40.0%]     Load average: 1.11 1.12 1.16
      3  [##*****                       16.7%]     Uptime: 1 day, 01:44:28
      4  [###*******                    27.2%]
      Mem[||||********             580/6144MB]
      Swp[                              0/0MB]
    
      PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command                   
    1874 root       20   0 13032  5036   932 S 39.0  0.1  9h33:24 /bin/sh ./centmin.sh      
    3066 root       20   0 15744  1632  1044 R  0.0  0.0  0:03.33 htop           
      697 mysql      39  19  791M 93052  4104 S  0.0  1.5  1:56.07 /usr/sbin/mysqld --basedir=/
    30869 nginx      10 -10  534M 36192  3188 S  0.0  0.6  0:01.05 nginx: worker process     
    10518 nginx      10 -10  534M 36192  3188 S  0.0  0.6  0:00.11 nginx: worker process
        1 root       20   0 19236   796   544 S  0.0  0.0  0:00.04 init
      126 root       16  -4 10644   536   264 S  0.0  0.0  0:00.00 /sbin/udevd -d
      486 root       20   0  148M  1388   692 S  0.0  0.0  0:00.24 /sbin/rsyslogd -i /var/run/s
      487 root       20   0  148M  1388   692 S  0.0  0.0  0:00.20 /sbin/rsyslogd -i /var/run/s
      485 root       20   0  148M  1388   692 S  0.0  0.0  0:00.46 /sbin/rsyslogd -i /var/run/s
      518 nsd        20   0 15100   712   348 S  0.0  0.0  0:00.03 /usr/local/sbin/nsd -c /etc/
      520 nsd        20   0 21964   728   152 S  0.0  0.0  0:00.00 /usr/local/sbin/nsd -c /etc/
      521 nsd        20   0 15360   600   140 S  0.0  0.0  0:00.00 /usr/local/sbin/nsd -c /etc/
      547 root       20   0 61928 17276   964 S  0.0  0.3  0:07.75 lfd - sleeping
      556 dbus       20   0 21436   544   304 S  0.0  0.0  0:00.00 dbus-daemon --system
      588 root       20   0 66220  1008   300 S  0.0  0.0  0:00.10 /usr/sbin/sshd
      598 clam       20   0  419M  280M   460 S  0.0  4.6  0:00.00 clamd
      597 clam       20   0  419M  280M   460 S  0.0  4.6  0:10.10 clamd
      607 root       20   0 11440  1184   884 S  0.0  0.0  0:00.00 /bin/sh /usr/bin/mysqld_safe
      698 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.70 /usr/sbin/mysqld --basedir=/
      699 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.79 /usr/sbin/mysqld --basedir=/
      700 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.80 /usr/sbin/mysqld --basedir=/
      701 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.79 /usr/sbin/mysqld --basedir=/
      702 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.81 /usr/sbin/mysqld --basedir=/
      703 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.81 /usr/sbin/mysqld --basedir=/
      704 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.75 /usr/sbin/mysqld --basedir=/
      705 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.68 /usr/sbin/mysqld --basedir=/
      706 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.69 /usr/sbin/mysqld --basedir=/
      707 mysql      20   0  791M 93052  4104 S  0.0  1.5  0:02.62 /usr/sbin/mysqld --basedir=/
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    did you properly exit centmin.sh command via option 22/23 ?

    how are you invoking centmin.sh ? instead of using bash centmin.sh, just type centmin or cd to centmin.sh and use ./centmin.sh.

    also what's output for command (wrap in CODE tags)

    Code:
    ps aufx
     
  10. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    I must admit, sometimes I don't exit centmin.sh via option 23. Instead I just disconnect from the server.

    And I invoke to centmin.sh always like this:

    Code:
    cd /usr/local/src/centmin-v1.2.3mod
    ./centmin.sh
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    there's your problem always exit via centmin.sh menu !
     
  12. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    Well, now I did, 3 times now, to be sure.
    Still 39% usage for centmin.sh
     
  13. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    Code:
    [root@server centmin-v1.2.3mod]# ps aufx
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.0  19236   912 ?        Ss   Apr28   0:00 init
    root         2  0.0  0.0      0     0 ?        S    Apr28   0:00 [kthreadd/6292]
    root         3  0.0  0.0      0     0 ?        S    Apr28   0:00  \_ [khelper/6292]
    root       126  0.0  0.0  10644   536 ?        S<s  Apr28   0:00 /sbin/udevd -d
    root       485  0.0  0.0 151772  1388 ?        Sl   Apr28   0:00 /sbin/rsyslogd -i /var/run
    nsd        518  0.0  0.0  15100   720 ?        Ss   Apr28   0:00 /usr/local/sbin/nsd -c /et
    nsd        520  0.0  0.0  21964   728 ?        S    Apr28   0:00  \_ /usr/local/sbin/nsd -c
    nsd        521  0.0  0.0  15360   600 ?        S    Apr28   0:00  \_ /usr/local/sbin/nsd -c
    root       547  0.0  0.2  61928 17396 ?        Ss   Apr28   0:07 lfd - sleeping
    dbus       556  0.0  0.0  21436   544 ?        Ss   Apr28   0:00 dbus-daemon --system
    root       588  0.0  0.0  66220  1052 ?        Ss   Apr28   0:00 /usr/sbin/sshd
    root     11538  0.0  0.0  98376  2868 ?        Ss   23:38   0:00  \_ sshd: root@pts/1
    root     11867  0.0  0.0  13436  3668 pts/1    Ss   23:38   0:00      \_ -bash
    root      1655  0.0  0.0  13368  1016 pts/1    R+   23:41   0:00          \_ ps aufx
    clam       597  0.0  4.5 429580 286904 ?       Ssl  Apr28   0:10 clamd
    root       607  0.0  0.0  11440  1184 ?        S    Apr28   0:00 /bin/sh /usr/bin/mysqld_sa
    mysql      697  0.1  1.4 810632 93336 ?        SNl  Apr28   1:57  \_ /usr/sbin/mysqld --bas
    nobody     733  0.0  1.1 359100 70808 ?        Ssl  Apr28   0:18 /usr/local/bin/memcached -
    root       815  0.0  0.0  81284  1520 ?        Ss   Apr28   0:00 /usr/libexec/postfix/maste
    postfix    828  0.0  0.0  81536  1728 ?        S    Apr28   0:00  \_ qmgr -l -t fifo -u
    postfix  32599  0.0  0.0  81364  2008 ?        S    23:16   0:00  \_ pickup -l -t fifo -u
    root       843  0.0  0.0  20032  1088 ?        Ss   Apr28   0:00 crond
    root       850  0.0  0.0   4068   560 tty1     Ss+  Apr28   0:00 /sbin/mingetty console
    root       851  0.0  0.0   4068   556 tty2     Ss+  Apr28   0:00 /sbin/mingetty tty2
    root      1874 38.0  0.0  13032  5036 ?        S    Apr28 580:18 /bin/sh ./centmin.sh
    root     30865  0.0  0.3 149944 22328 ?        Ss   22:39   0:00 nginx: master process /usr
    nginx    30869  0.0  0.6 613228 38052 ?        S<l  22:39   0:01  \_ nginx: worker process
    nginx    30871  0.0  0.4 416160 31400 ?        S<l  22:39   0:01  \_ nginx: worker process
    root      2425  0.0  0.1 311652  8416 ?        Ss   22:50   0:00 php-fpm: master process (/
    nginx    30583  0.5  0.2 312500 17132 ?        S    23:41   0:00  \_ php-fpm: pool www  
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you need to kill the process like i explained above - existing centmin.sh won't kill already running processes
     
  15. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    Ah, ok. Just where did you explain how to kill the process? Sorry, I don't see it.
     
  16. eva2000

    eva2000 Administrator Staff Member

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    sorry mixed up with other thread where i posted kill process commands random cpu usage? | Centmin Mod Community

    Just kill process id for the process

    Code:
    kill -9 PROCESSID
    i.e.
    Code:
    kill -9 1874
     
  17. sepulchre

    sepulchre Member

    167
    22
    18
    Dec 22, 2014
    Ratings:
    +28
    Local Time:
    3:50 AM
    Thanks! That worked. And I learned 2 things.
    Always exit properly and now I know how to kill processes.

    What a coincidence, that guy from the other thread had the same issue. And I thought it might have to do with my forum.
     
    Last edited: Apr 30, 2015