Linux container hestia panel and wordpress cpu Problem

Enter98829

New Member
Jul 30, 2024
4
0
1
Hi i use a server with 64 GB ram and 8 CPU, I created a linux container with 1024 MB Ram 1 CPU and 24 GB SSD, In contianer i install hestia panel and on hestia wordpress website. The problem is cpu it is permanenly 100%. Please help, Thank
 
Hi,
could you please run this command inside the container and post the output? It should reveal which process is using the resources.
Code:
top -b -c -w512 -n 1 -o TIME | head -n 30
You may just need to give the container a bit more resources, WordPress isn't exactly a light application.
 
This it the result

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
Last login: Tue Jul 30 07:24:35 UTC 2024 on tty1
root@c007:~# top -b -c -w512 -n 1 -o TIME | head -n 30
top - 12:04:17 up 4:22, 1 user, load average: 8.41, 7.98, 7.45
Tasks: 381 total, 6 running, 375 sleeping, 0 stopped, 0 zombie
%Cpu(s): 34.3 us, 65.7 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 2024.0 total, 850.2 free, 674.1 used, 499.7 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 1264.4 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1273 badi 20 0 763164 126192 92160 R 19.2 6.1 51:20.63 php-fpm: pool badi.md
1319 badi 20 0 765716 127108 90752 R 23.1 6.1 51:16.72 php-fpm: pool badi.md
1317 badi 20 0 763760 133768 99328 R 23.1 6.5 51:14.16 php-fpm: pool badi.md
1321 badi 20 0 763524 124892 90752 R 19.2 6.0 51:12.71 php-fpm: pool badi.md
1272 badi 20 0 780976 139152 101888 R 19.2 6.7 51:12.27 php-fpm: pool badi.md
275 mysql 20 0 1121852 169736 24704 S 0.0 8.2 2:11.16 /usr/sbin/mariadbd
402 www-data 20 0 56748 11504 6400 S 3.8 0.6 1:54.01 nginx: worker process
112 root 20 0 695596 23780 11136 S 0.0 1.1 0:16.03 /usr/bin/python3 /usr/bin/fail2ban-server -xf start
579 www-data 20 0 767824 18980 8576 S 0.0 0.9 0:05.60 /usr/sbin/apache2 -k start
578 www-data 20 0 767500 18656 8576 S 0.0 0.9 0:05.03 /usr/sbin/apache2 -k start
1996 www-data 20 0 767540 18716 8576 S 0.0 0.9 0:04.91 /usr/sbin/apache2 -k start
11462 www-data 20 0 767448 17468 8576 S 0.0 0.8 0:02.13 /usr/sbin/apache2 -k start
11927 www-data 20 0 767448 16956 8064 S 0.0 0.8 0:02.06 /usr/sbin/apache2 -k start
12589 www-data 20 0 767432 17084 8192 S 0.0 0.8 0:02.03 /usr/sbin/apache2 -k start
1 root 20 0 165660 10880 8064 S 0.0 0.5 0:00.82 /sbin/init
116 root 20 0 696116 42772 34688 S 0.0 2.1 0:00.62 php-fpm: master process (/etc/php/8.2/fpm/php-fpm.conf)
115 root 20 0 662508 41608 33792 S 0.0 2.0 0:00.52 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
38 root 20 0 56716 25088 23680 S 0.0 1.2 0:00.49 /lib/systemd/systemd-journald
576 root 20 0 17852 11040 7936 S 0.0 0.5 0:00.43 /usr/sbin/apache2 -k start
570 root 20 0 81288 7112 2432 S 0.0 0.3 0:00.36 php-fpm: master process (/usr/local/hestia/php/etc/php-fpm.conf)
91 message+ 20 0 8632 4608 4096 S 0.0 0.2 0:00.34 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
96 root 20 0 15052 7040 6144 S 0.0 0.3 0:00.17 /lib/systemd/systemd-logind
577 www-data 20 0 17304 5800 2688 S 0.0 0.3 0:00.10 /usr/sbin/apache2 -k start
root@c007:~#
 
If I give it more resources in a few minutes it loads them fully, for example they gave it 5 gb ram and 4 cpu in a few minutes the cpu was full
 
Hm, I'll assume that badi.md is related to the WordPress site that you are trying to set up?
That badi.md php pool is currently hogging up all your resources, so whatever is going wrong is related to that service.
I haven't had to work with WordPress for a while, so I can't really of help there, but I would start by looking for the logs and see if there is any major issue that it is hung on
 
Tank you very much for answer, but i find the problem it is amazon bots. I block all bots in cloudflare and cpu from 100% now is 20-25 %
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!