High CPU Usage, 4CPU 8GB RAM

This might be a reason. I missed it ! sorry am multi-tasking

Am convinced becuase here High CPU Usage, 4CPU 8GB RAM - #7 by SuperPSX you are consuming 5gb of RAM in buffer/cache. This must be some technology hogging the system via caching. Try this

$ systemctl status redis.service
$ systemctl stop redis.service
$ systemctl restart lscpd

Then test your server and take a screenshot of your server stats from cyberpanel

Please watch this short video: CPU Usage 100% - YouTube

Just did.

Now post a screenshot of the result of running this command ls /var/lib/lsphp/session/lsphp74

Well we can rule out the php sessions issue unless you are running multiple php versions. To be sure try this:

# start here copy line bleow me
rm -f /var/lib/lsphp/session/lsphp71/* && rm -f /var/lib/lsphp/session/lsphp72/* && rm -f /var/lib/lsphp/session/lsphp73/* 
# then copy line below me
rm -f /var/lib/lsphp/session/lsphp74/* && rm -f /var/lib/lsphp/session/lsphp80/* && rm -f /var/lib/lsphp/session/lsphp81/*

Now to address this cancerous component issue that craps a systemd service out: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject

Run the commands line by line:

# add user to the group
$ groupadd -g 23 nohidproc
$ usermod -a -G nohidproc polkitd
$ mount -o remount,rw,hidepid=2,gid=nohidproc /proc
$ systemctl restart polkit
# nano /etc/fstab or run it directly
$ echo "proc /proc proc defaults,hidepid=2,gid=nohidproc 0 0" >> /etc/fstab
# add new mount
$ mount -a
$ systemctl restart polkit

running multiple php versions.

Can you repeat the actions on the websites, but have a putty window side-by-side running this command, please?


If you don’t have it, you can safely install it with:

apt install -y htop || yum install -y htop || dnf install -y htop

A short video doing this:

  • Putting google chrome and putty side-by-side
  • Running htop on putty
  • Waiting for 15 seconds
  • Do 3/4 actions on the website like update a page and such
  • Wait for 15 seconds

No need to check it the CPU % on cyberpanel, we will trust in htop for that.

Please check this video: htop - YouTube

Check this out MariaDB / MySQL Tweaks As Default & Option

Basically run nano /etc/my.cnf use the keyboard shortcut CTRL+W to search for skip-name-resolve and comment it out. Restart mariadb systemctl restart mysqld

Exchange Redis with Memcached.
Memcached should help alleviate the database in this case.

After doing so, restart lsws and repeat the video, please.

systemctl restart lsws

How many users are accessing your website currently?
Do you have any proxy in front, like cloudflare?

How can I exchange Redis with Memcached? All I know, I can install PHP extension (Memcache and Redis), Should I uninstall Redis extension and install Memcache?

No, I meant going to the litespeed plugin option, object cache if not mistaken.
Redis should be active there, you change it to Memcached

But Memcached Extension is Disabled

Install it on the extension you showed above
You should also need to start the service at cyberpanel, but can’t access a panel right now to proper guide you, only in a few minutes

I can wait, I need a proper guide. Also, can I keep both PHP extensions Redis and Memcache?

What is your OS, ubuntu or centos?

My OS is: CentOS 7