Learn about Centmin Mod LEMP Stack today
Register Now

random cpu usage?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Oxide, Apr 27, 2015.

  1. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    4:43 AM
    any idea why this? i never executed it , reboot fixes it but it happenbs regulary

    [​IMG]

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,826
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    4:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like probably centmin.sh run that never exited for some reason

    what was the last centmin.sh task you ran ? you can have a rough idea by looking at your /root/centminlogs/* logs recorded for centmin.sh menu actions. Just view logs in reverse time ascending order using command

    Code:
    ls -lAhrt /root/centminlogs/
     
  3. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    4:43 AM
    i added vhost, how can i kill it without rebooting? it was probaly cus sometimes i dont exit it using 22 option ..

    [root@server ~]# ls -lAhrt /root/centminlogs/
    total 4.3M
    -rw-r--r-- 1 root root 12K Apr 22 23:40 centminmod_1.2.3-eva2000.07_230415-040522_yuminstall_centos6.log
    -rw-r--r-- 1 root root 42K Apr 22 23:40 centminmod_yumtimes_230415-040522.log
    -rw-r--r-- 1 root root 0 Apr 22 23:40 timedhosts_230415-040522.txt
    -rw-r--r-- 1 root root 225K Apr 22 23:41 centminmod_1.2.3-eva2000.07_230415-040522_install.log
    -rw-r--r-- 1 root root 4.8K Apr 22 23:47 centminmod_1.2.3-eva2000.07_230415-041405_yuminstall_centos6.log
    -rw-r--r-- 1 root root 32K Apr 22 23:48 centminmod_yumtimes_230415-041405.log
    -rw-r--r-- 1 root root 0 Apr 22 23:48 timedhosts_230415-041405.txt
    -rw-r--r-- 1 root root 20K Apr 23 00:01 centminmod_1.2.3-eva2000.07_230415-041405_yum-log.log
    -rw-r--r-- 1 root root 3.9M Apr 23 00:01 centminmod_1.2.3-eva2000.07_230415-041405_install.log
    -rw-r--r-- 1 root root 44K Apr 23 00:01 centminmod_1.2.3-eva2000.07_230415-000124_apc_install.log
    -rw-r--r-- 1 root root 1.2K Apr 23 00:02 centminmod_1.2.3-eva2000.07_230415-000249_nginx_addvhost.log
    -rw-r--r-- 1 root root 1.2K Apr 23 00:42 centminmod_1.2.3-eva2000.07_230415-004220_nginx_addvhost.log
    -rw-r--r-- 1 root root 392 Apr 23 11:33 centminmod_1.2.3-eva2000.07_230415-113302_suhosin_install.log
    -rw-r--r-- 1 root root 1.3K Apr 25 23:43 centminmod_1.2.3-eva2000.07_250415-234257_nginx_addvhost.log
     
  4. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    4:43 AM
    also for some reason when rebooting nginx takes forever to start i see like "sleep 60" i dont know if that matters, no idea what that is..

    http://i.imgur.com/Pz0nrHA.png
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,826
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    4:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just kill process id for the process

    Code:
    kill -9 PROCESSID
    i.e.
    Code:
    kill -9 10431
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,826
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    4:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    how are you restart nginx ? either of these ?

    Code:
    service nginx restart
    ngxrestart
    the more nginx worker processes you have + busier the nginx is with active connections, the longer it takes to restart nginx usually.

    if you don't need an immediate restart, just reload instead which exits nginx processes after the current existing work load is done for worker processes.

    Code:
    ngxreload
    service nginx reload
    FYI, always use menu option to exit centmin.sh .07 stable = menu option 22 and .08 beta = menu option 23
     
  7. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    4:43 AM
    i have 4 cores, same inside nginx.conf

    idk if thats wrong way to do it.. it was at 2 but i made it 4
     
  8. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    4:43 AM
    rebooting i meant,

    nginx takes forever to start after rebooting (the server already started).

    also another question after another: when new centmin version comes out will it be easy to update or will i have to re install?
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,826
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    4:43 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod optimises nginx work core allocation so that it leaves some cores for non-nginx work loads like mysql/php-fpm instead of assigning them all to nginx.

    reboot speed depends on your server configuration so could be many reasons why stuff processed before nginx startup is slower.. but it isn't normal if after booting up and you can ssh in and nginx has still yet to start by then

    IIRC, you had previous problems with very slow downloads too in 700KB/s range, so I am guessing it's just the server you're on

    as to Centmin Mod build release updates i.e. .07 to .08 here's a bit of explanation

    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code which you downloaded via zip file or via github. This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod is best.
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.

    There's 3 ways you can upgrade your .07 stable or .08 beta02 code you have on your server. They are outlined in respective upgrade sections of the first posts linked below:
    1. For .07 stable 1st post see section on upgrades Install - Centmin Mod 1.2.3-eva2000.07 stable install
    2. For .08 beta 02 1st post see section on upgrade to latest code CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ?
    3. For either .07 stable or .08 beta02 via github command line Upgrade - Working with git command line for updating Centmin Mod local copies
    Github commit log for
     
    Last edited: Apr 27, 2015