Ghost spikes DigitalOcean server

Hey Guys,
Just a query, why does Ghost spike up my Digital Ocean server every once in a while.

This is the attached image of the metrics

I had spikes initially but have been getting better performance since I added a swap file and updated everything, not really sure what caused it or fixed it. I also erased my droplet and reinstalled ghost after it crashed after high cpu usage the first time and has seemed better since then.

hi @Carnarts are you saying that since the time you posted this comment here, not even once has your DO spiked? I have everything updated (including server) but it still continues to spike. Can you please list down exact steps of what all you did (with reference material) for us to do the same.

The first thing I did was start from scratch, by erasing my droplet and starting again.
I guess it’s possible it could have been an installation problem. Might be worth a try if it’s easy for you to start again.

I followed this swap file guide here How To Add Swap Space on Ubuntu 20.04 | DigitalOcean

I’m not sure if the spiking will return because my website isn’t live yet so I don’t know what will happen when I get multiple users looking at it.

I still get small spikes, but so far they are much smaller, usually under 5% and not over 20% CPU

Well, mine is live and I am damn sure it has not many incoming users. (Next to none). My spikes are huge. It lasts for a couple of minutes and freezes the whole system down. (CPU upwards to 100%)

I came across this before with 1GB Droplet, adding SWAP is really helps.

Thanks @yong & @Carnarts for pointing to the tut.

My issue is more to do with memory (RAM above 80% always) and not CPU, My CPU is always under 5% (@prajwalbkumar ) So I am gonna try this swap thing and post back the results.