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.confCode: Select all
Storage=volatile
RuntimeMaxUse=4M
RuntimeKeepFree=2M
RuntimeMaxFileSize=1M
MaxRetentionSec=1day
Compress=noCode: Select all
sudo systemctl restart systemd-journaldCode: Select all
nano /etc/mysql/mariadb.conf.d/50-server.cnfCode: Select all
key_buffer_size = 4M
max_allowed_packet = 16M
thread_stack = 128K
thread_cache_size = 2
max_connections = 5
table_cache = 32Code: Select all
sudo systemctl restart mariadbCode: Select all
nano /etc/apache2/mods-enabled/mpm_prefork.confCode: Select all
<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 1
MaxRequestWorkers 2
MaxConnectionsPerChild 0
</IfModule>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 filterCode: Select all
sudo a2disconf javascript-commonCode: Select all
systemctl restart apache2
