Accéder au contenu principal

Load Averages HIGHT, memory hight

Apache problem can affect the entire server.
 



 With the Apache problem, this seems to have been encountered less frequently but it has occurred several times in the last few days.

 
# grep 'MaxRequestWorkers' /usr/local/apache/logs/error_log
[Tue Nov 18 17:27:00.590507 2025] [mpm_prefork:error] [pid 3243:tid 3243] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Wed Nov 19 11:28:39.530182 2025] [mpm_prefork:error] [pid 3231:tid 3231] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Fri Nov 21 20:03:31.287851 2025] [mpm_prefork:error] [pid 3054:tid 3054] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
 
The current Apache limits are shown below, which are also set to the default values.
 
# grep -Ei "(MaxRequestWorkers|ServerLimit)" /etc/apache2/conf/httpd.conf
ServerLimit 256
MaxRequestWorkers 150
 
The following articles provide more information of what you can do to resolve this problem.
 
MaxRequestWorkers and DDoS
How can I tell if Apache is experiencing a DDoS attack?
 
You can resolve it by raising the Apache limits, but you will want to do this in increments as well. If you notice that problems are still occurring after modifying the limits, you may need to review the logs to see if any offending IPs are attacking the server. I have provided a list of the top IP connections to your server with the IP itself and the number of connections today.
 
# grep -iR "21\/Nov\/2025" /etc/apache2/logs/domlogs/ | awk -F: '{print $2}' | awk {'print $1'} | sort -rn | uniq -c | sort -rn | head -n 20
28712 191.101.42.41
17892 128.199.119.83
11128 154.73.92.52
11055 48.210.83.7
7784 41.111.168.17
7710 48.210.228.230
6496 185.104.184.204
4470 185.208.158.157
4237 172.190.142.176
3262 154.121.43.255
3216 197.200.41.236
3162 172.207.169.113
3012 172.177.121.115
2910 20.37.101.92
2898 193.142.146.65
2603 20.10.27.223
2584 74.176.50.59
2534 74.176.50.101
2278 134.149.18.28
1912 51.89.204.24
 
If any of these IPs are problematic, you can try blocking the connections, but I suggest you first start with the PHP-FPM adjustments or disable PHP-FPM for the problem sites.


Pour voir les détailles de max children sur PHP81

grep max_children /opt/cpanel/ea-php81/root/usr/var/log/php-fpm/error.log

perl -lane 'print if /journalabc-ar/ and /max_children/' /opt/cpanel/ea-php81/root/usr/var/log/php-fpm/error.log | tail

ls /opt/cpanel/ea-php*/root/usr/var/log/php-fpm/error.log | while read log ; do echo ${log} ; perl -lane 'if (@F[0] =~ "24-Nov-2025" and /server reached max_children/ and @F[3] =~ "pool") {my $output = @F[4] ; my @domain = split /]/, $output ; print @domain[0] =~ s/\_/\./gr }' ${log} | sort | uniq -c | sort -nr ; done

/opt/cpanel/ea-php74/root/usr/var/log/php-fpm/error.log

/opt/cpanel/ea-php80/root/usr/var/log/php-fpm/error.log

/opt/cpanel/ea-php81/root/usr/var/log/php-fpm/error.log 



Cérifier si tu as une attaque (DDoS ou bot)

Voir les IP avec beaucoup de connexions :

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

Commentaires

Posts les plus consultés de ce blog

Open Media Vault NAS change password

Known Root Password Login to the OMV using the root user and the current password via SSH or Console enter the following command passwd root The new password is now active. Unknown Root Password, but Admin Access to OMV GUI is Available In this scenario we still can help ourselves with the GUI. The method we use is, that we create a cron job for the root user which then resets the password. Navigate to System -> Cron Jobs Press the +Add button UN-tick the enabled box, so that the cronjob does not run automatically. put into the command field the following line, replace newpasswd with your password: echo "root:newpasswd" | chpasswd press okay select the newly created cron job Click the run button. in the opening window click the start button. It will shortly deactivate and activate again. open ssh or console and login as root with your new password. Root and Admin Password Unknown If you do not know the root password, you need to boot with a Li...

How to Install Cpanel/WHM in RHEL/CentOS 6/5

ici quelques notions de bases que je vous invite à lire avant de commencer Basculer un clavier en AZERTY ou en QWERTY sous Linux setxkbmap fr Se connecter en adminstrateur su - root yum update  ( Yellowdog Updater, Modified ) cPane l is one of the most popular Commercial control panel for Linux web hosting, I have been working with cPanel for 2+ years to manage all Shared, Reseller and business hosting customers. It comes with cPanel and Web Host Manager, which makes web hosting easier for you. WHM provides you root level access to your server whereas cPanel provides user level access interface to manage their own web hosting account on the server. Features of cPanel cPanel control panel is very versatile control panel for managing your hosting servers, It has lots of features which make Web hosting easier for you. Some of them are listed below: Powerful GUI controls on your server with WHM. Can perform tedious tasks like Backups, Migrations and restoratio...

Les commandes de base des switchs

Commandes • enable o Depuis le mode utilisateur permet d'accéder au mode privilégié. • configure terminal o Depuis le mode privilégié permet d'accéder au mode de configuration globale. • show version o Permet de vérifier la version de l'IOS et la valeur du registre de configuration. • show running-config o Permet d'afficher le fichier de configuration actif. • show interface FastEthernet [numéro de l'interface] o Affiche le statut de l'interface, le débit, l'auto négociation et les statistiques de l'interface. • show ip interface brief o Voir tous les ports du Switch • show flash ou dir:flash o Affiche la version de l'image de l'IOS contenue dans la mémoire flash, la taille de la mémoire et la mémoire utilisée.  • show interface status o Affiche le mode opérationnel du port. • show controllers ethernet-controller o Affiche les statistiques sur les données reçues et envoyées au niveau matériel.  • show ...