Very urgent! cpu 100% used

Hello everyone, I have been using CyberPanel for over 2 years, and everything has been working fine during that time. Recently, I suddenly noticed that the CPU usage has been consistently between 90-100%. After checking, I found that it might be caused by lsphp.

  1. I checked the forum and deleted all versions of PHP sessions.
  2. I stopped the lsws process.
  3. I contacted the server provider and replaced all hardware in the computer, keeping only the NVME.
  4. I deleted many websites (thinking that too many websites were causing the issue), and in the process, I mistakenly deleted an important website which hasn’t been backed up yet!!! I am close to breaking down!
    I have been working for 24 hours straight and tried all the methods mentioned above, but the issue has not been resolved yet. I suspect it might be caused by CyberPanel?? Please help me!
    Also, is there any chance of recovering the database I deleted (without a backup)?
    Thank you!!!





It is already 7 AM here. If I fail to reply in time, it means I can’t hold on anymore!

Hello @bjt100

First use tools like htop or top to monitor usage in real time to identify which processes are consuming the most resources of your server.

  1. Review your cronjobs
  2. Adjust how many connections can be handled simultaneously by lsphp
  3. implement caching for your php apps
  4. Can you show me response of running this command
 ps -aux | grep -E 'kinsing|atdb|udiskssd|kdevtmpfsi|bash2|syshd' | grep -v 'grep'

Thank you for your reply! Using htop, I found that lsphp is consuming the most CPU. The problem is that even after I stop the lsws service, the CPU is still 100% utilized, but htop doesn’t show any process consuming the CPU. I ran your code but got no output.


Review the index.php file of that website for any inefficient loops, excessive database queries, or heavy computations that could be optimized.

@josephgodwinke
index.php is just the default file for WordPress. As I mentioned above, even after I stop lsws, the CPU is still 100% utilized!

<?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define( 'WP_USE_THEMES', true ); /** Loads the WordPress Environment and Template */ require __DIR__ . '/wp-blog-header.php';

If it is a wordpress website then leverage lscache on your website see if it reduces load. Are you using default wordpress theme ? also default wordpress plugins ?

Probably you got hacked, what is your Cyberpanel version?

My advice is to make a backup of all sites and databases, emails. Then do a fresh install.