ラズパイのメモリ節約
Raspberry Pi Zero2 WHが512MBしかメモリ無いこと忘れていた。 apache2立ち上げると結構なメモリ容量を食う。 ので sudo nano /etc/apache2/mods-available/mpm_event.conf StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxRequestWorkers 150 MaxConnectionsPerChild 0 を以下の設定に変更 StartServers 1 MinSpareThreads 5 MaxSpareThreads 10 ThreadLimit 10 ThreadsPerChild 10 MaxRequestWorkers 20 MaxConnectionsPerChild 1000 で設定ファイルを編集、apache2を再起動 変更後のmuninのメモリ...