MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2017-07-12, 23:20:38

Title: /script/restart-web causing high CPU usage on CentOS 7
Post by: Spacedust on 2017-07-12, 23:20:38
It shows:

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

with 99% CPU usage

and such simple restart takes about 10 minutes!
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: MRatWork 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.
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: Spacedust 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.
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: MRatWork on 2017-07-14, 02:46:57
Try update Kloxo-MR and run cleanup.
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: Spacedust 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 :(
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: I<3Kloxo on 2017-07-16, 01:06:23
Your Server or VPS how much memory RAM has and which CPU has ?
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: Spacedust 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.
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: MRatWork on 2017-07-16, 17:47:55
Try update Kloxo-MR 7.0.
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: Spacedust 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
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: Spacedust 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 ;)
Title: Re: /script/restart-web causing high CPU usage on CentOS 7
Post by: Spacedust 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.