Memory disk and CPU peaks

January 11, 2019 62 views
WordPress Ubuntu 18.04

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?

Cheers

1 Answer

Install these utils so you can gather historical data:

apt install atop sysstat

then:

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.

Cheers

Have another answer? Share your knowledge.