System fix

Qualsiasi cosa inseritela qui
Post Reply
User avatar
Matteo
Admin
Admin
Posts: 61
Joined: Friday 5 November 2021, 11:10

System fix

Code: Select all

ps aux --sort=-rss | awk 'NR==1{print $0; next} {printf "%-10s %-6s %-4s %6.1f MB  %s\n", $1, $2, $3, $6/1024, $11}' | head -n 20

Code: Select all

nano /etc/systemd/journald.conf

Code: Select all

Storage=volatile
RuntimeMaxUse=4M
RuntimeKeepFree=2M
RuntimeMaxFileSize=1M
MaxRetentionSec=1day
Compress=no

Code: Select all

sudo systemctl restart systemd-journald

Code: Select all

nano /etc/mysql/mariadb.conf.d/50-server.cnf

Code: Select all

key_buffer_size        = 4M
max_allowed_packet     = 16M
thread_stack           = 128K
thread_cache_size      = 2
max_connections        = 5
table_cache            = 32

Code: Select all

sudo systemctl restart mariadb

Code: Select all

nano /etc/apache2/mods-enabled/mpm_prefork.conf

Code: Select all

<IfModule mpm_prefork_module>
        StartServers            1
        MinSpareServers           1
        MaxSpareServers          1
        MaxRequestWorkers         2
        MaxConnectionsPerChild   0
</IfModule>
o più performante:

Code: Select all

<IfModule mpm_prefork_module>
        StartServers                     5
        MinSpareServers           5
        MaxSpareServers          10
        MaxRequestWorkers         150
        MaxConnectionsPerChild   0
</IfModule>

Code: Select all

sudo a2dismod autoindex status alias negotiation authz_user filter

Code: Select all

sudo a2disconf javascript-common

Code: Select all

systemctl restart apache2
Post Reply