Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2018-02-24, 22:13:55

Author Topic: /script/restart-web causing high CPU usage on CentOS 7  (Read 1180 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,956
  • Karma: +1/-0
    • View Profile
It shows:

/usr/lib/systemd/systemd --switched-root --system --deserialize 21

with 99% CPU usage

and such simple restart takes about 10 minutes!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +113/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #1 on: 2017-07-13, 03:26:48 »
CentOS 7 using systemd instead sysv (aka initd) for service process. I have no idea how to customize systemd configs file like I do for initd.

Most issue for service restart related to php-fpm.

Under initd, need remove socket files (related to thread childrens) before restart for faster restart.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,956
  • Karma: +1/-0
    • View Profile
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #2 on: 2017-07-13, 19:01:58 »
CentOS 7 using systemd instead sysv (aka initd) for service process. I have no idea how to customize systemd configs file like I do for initd.

Most issue for service restart related to php-fpm.

Under initd, need remove socket files (related to thread childrens) before restart for faster restart.

Maybe just run simple sh script. It works fast then.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +113/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #3 on: 2017-07-14, 02:46:57 »
Try update Kloxo-MR and run cleanup.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,956
  • Karma: +1/-0
    • View Profile
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #4 on: 2017-07-15, 23:23:12 »
Updated. /script/cleanup now works so slow, that it takes almost an hour to complete with just a few domains :(

Offline I<3Kloxo

  • Senior Member
  • *
  • Posts: 190
  • Karma: +0/-0
    • View Profile
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #5 on: 2017-07-16, 01:06:23 »
Your Server or VPS how much memory RAM has and which CPU has ?

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,956
  • Karma: +1/-0
    • View Profile
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #6 on: 2017-07-16, 17:39:23 »
Your Server or VPS how much memory RAM has and which CPU has ?

It's a dedicated 8-core ATOM C2750  @ 2.40GHz + 8 GB DDR3 1333 MHz + 160 GB SSD

Was working super fast on CentOS 6.9.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +113/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #7 on: 2017-07-16, 17:47:55 »
Try update Kloxo-MR 7.0.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,956
  • Karma: +1/-0
    • View Profile
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #8 on: 2017-07-16, 18:01:50 »
Try update Kloxo-MR 7.0.

I'm using the latest Kloxo-MR 7.0.0.c-2017071101

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,956
  • Karma: +1/-0
    • View Profile
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #9 on: 2017-07-16, 18:47:45 »
This is probably not the cause of Kloxo-MR, but CentOS 7 - this is causing:

/usr/lib/systemd/systemd --switched-root --system --deserialize 21

very high CPU load on almost every command so it's pointless to use such OS at this time.

I think I will switch back to CentOS 6.9 ;)

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,956
  • Karma: +1/-0
    • View Profile
Re: /script/restart-web causing high CPU usage on CentOS 7
« Reply #10 on: 2017-07-16, 21:03:35 »
Switched back to CentOS 6.9 and everything is flying ;) CentOS 7 is ultra slow, so not recommended to anyone. Not worth the time. Better install CentOS 6.9 with latest kernel-ml.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.049 seconds with 18 queries.

web stats analysis