Reputation: 1601
I'm currently working on a wordpress website on AWS lightsail. Its very basic and I have just installed the oxygen theme to edit the site.
I am in one country and my friend (who I am doing this for) is in another country.
He logged into the site the same time I was editing it, and it caused this spike in the CPU usage:
This made the website not load in the browser and I could not even SSH using the web based SSH terminal.
That isn't a very big spike and I'm worried I set something up wrong. Is there anyway to see more information on this metric? or see more metrics as to why my instance went down?
Upvotes: 5
Views: 3635
Reputation: 1279
Not related to cpu, but I had similar issues with Lightsail servers randomly becoming unresponsive. Try checking your swap space. There probably isn't any configured if you used the amazon images, and couldn't hurt to add some.
I used this set of commands here:
# first check if any
swapon -s
# then add some if not
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Tweak the size if
Upvotes: 15