cpanellogd waiting for child to process logs for http
Hi,
It seems that Cpanellogd (or related services) are causing high load on the server that I'm managing.
It seems that this service is launched every hour and spawns more than 30 processes, like so:
root 19631 0.6 0.2 214456 18424 ? S 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19639 0.8 0.2 216428 21200 ? S 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19673 0.7 0.2 215372 18636 ? S 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19689 0.5 0.2 215688 20284 ? S 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19693 1.0 0.2 214780 18048 ? S 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19695 1.4 0.2 215124 19792 ? S 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19747 1.4 0.2 215076 19288 ? R 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19755 0.4 0.2 215284 19392 ? S 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19762 1.2 0.2 215200 19288 ? R 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19766 1.1 0.2 215396 20216 ? R 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19770 0.5 0.2 217480 21924 ? R 09:01 0:00 cpanellogd - waiting for child to process logs for http
root 19774 1.0 0.3 220196 24612 ? R 09:01 0:00 cpanellogd - waiting for child to process logs for http
-- snip snip
As far as I could understand from searches & documentation, this is used for rotating logs & bandwidth stats. We need neither of those and I would like to turn this off altogether.
I've done all the steps in the WHM to disable all log rotations & did everything possible to remove all traces of cpanellogd on the file system (moved all such files to a /root folder).
Yet it still seems to be spawning every hour (I can't understand why, since I've moved all files elsewhere?).
Is there a way to either fix this (e.g. find why it's failing & causing high load), or disabling it altogether (my preference)?
Thanks a lot,
j.
-
If you want to disable cpanellogd you can do so by following the instructions here: To stop stats from running you can disable this by going to WHM>>Server Configuration>>Statistics Software Configuration and disable statistics. You can also disable any of the cPanel logs from being rotated by going to WHM>>Service Configuration>>cPanel Log Rotation Configuration 0 -
Hi, Can you advise how to disable stats from running in Server Configuration >> Statistics Software configuration? - Generators Configuration options are unchecked - under "Statistics Processing Times" I had checked all hours (e.g. never run) - log processing frequency: 0 - bandwith processing frequency: 24 hours (minimum is 2) yet the process runs every hour Service Configuration>>Cpanel Log rotation configuration - none of the files are selected. I had also followed the steps in "how to completely remove" - e.g. the /usr/local/cpanel/cpanellogd and /usr/local/cpanel/libexec/cpanellogd are moved and file /etc/cpanellogddisable exists. Yet the cpanellog still runs and causes high load on the server. Is there anything else to try? Thanks a lot, j. 0 -
Hello, Can you tell me what the output of the following is when the file /etc/cpanellogddisable
is present?/scripts/restartsrv_cpanellogd --status
This should be stopping the process from being able to run, I've added it on a test server as well:[root@server ~]# touch /etc/cpanellogddisable [root@server ~]# ls -l /etc/cpanellogddisable -rw-r--r-- 1 root root 0 Aug 19 13:29 /etc/cpanellogddisable [root@server ~]# /scripts/restartsrv_cpanellogd Waiting for "cpanellogd" to stop "finished. info [restartsrv_cpanellogd] The service 'cpanellogd' is disabled and the system will not attempt to restart it. (XID g6bhk7) The "cpanellogd" service is disabled.
0
Please sign in to leave a comment.
Comments
3 comments