I recently updated to Ubuntu 20.04 on a 1GB droplet running Ghost. Now, whenever I run ghost update or similar, I get a memory error:

You are recommended to have at least 150 MB of memory available for smooth operation. It looks like you have ~45.265625 MB available.

The memory available varies between 30 MB and almost 150 MB, but it always throws this error.

As suggested in the Ghost forum, I ran free -h (which repeated the warning, and then ghost restart (which did not).

Any ideas? Thanks.

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.

×
1 answer

Adding a 2GB swap file with a swappiness of 10 solved my memory errors. More info here.

However, is this a bad practice? How will it affect my server usage?

Submit an Answer