Hello everyone, (Sorry for my English, I'm French.) Every night, at midnight, the RAM usage suddenly increases a lot and crashes my server. How can I identify the cron task that is using so much RAM? Thanks for your help
Various jobs run at midnight, e.g., backups and statistics. How much RAM does your server has, and have you added a swap partition or table?
Ok, 32GB is quite a lot already. Nontheless, you should consider adding a swap file of the same size and see if this fixes the issue.
Thx. I had "fallocate failed" with a swap size of 32GB, so I was only able to create a 4GB swap. I don't know if that will be enough, I'll see next night... I wonder if it's the backup that's using all that RAM. Can I temporarily disable backup of all sites?
If I delete this file, it doesn't disable backup ? /usr/local/ispconfig/server/lib/classes/cron.d/500-backup.inc.php
Check the syslog of the system. If the RAM usage is causing trouble to the system the init system will start oom killing processes to keep operating, you should see oom-killer messages if thats the case.
Hello, Thanks for the suggestion. This is what I looked for in the logs, but without success. Strange... I am nevertheless convinced that it is indeed the RAM which is to blame. But yesterday I think I finally solved the problem. It was obviously the nightly backups of ISPCONFIG that were consuming too much RAM. This is what I did: I identified backups that were too large and reduced the data to be backed up. Then I added cron jobs like this: crontab -e 55 23 * * * sudo sync; echo 1 > /proc/sys/vm/drop_caches 00 2 * * * sudo sync; echo 1 > /proc/sys/vm/drop_caches This has the effect of cleaning the RAM before and after backups. And it works now: the server no longer freezes. Thanks for your help.