Memory disk and CPU peaks

Every 3 or 4 days my ram, cpu and disk hits the roof and I am not sure why?

Does anyone know why this might be happening or how I can log this to view the processes latter?



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Install these utils so you can gather historical data:

apt install atop sysstat


service atop start
service sysstat start

My wild guess would be that every few days bots (ex: googlebots) try to re-index your site simultaneously or aggressively. And that causes the memory/cpu spikes you’re observing. It could also be malicious bots brute forcing your authentication pages. Review your access logs or analytics to try to understand what’s happening.