Question

Get Better Perfomance with Ghost Blog over ubuntu

Hi, Im running a 10 dolars droplet with 5 ghost blogs over a nginx.

They are running ok BUT i see i got just 69mb left of RAM.

I created a swap file but those process (nodejs and ghost) doesnt seem to use it.

Do you guys have any tips on how to improve things so i could not run out of memory :)

Subscribe
Share

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.

@leo

Please run the following command from the CLI:

free -m

… and post the output in full (it’s not long).

The swap file is not used by an application, so to speak, rather, the OS itself. In the event you’ve run out of RAM, the OS will then attempt to use swap. You can’t (and wouldn’t want to) assign an app to use swap over RAM.

That said, keep in mind that NodeJS requires RAM to run and each of the instances of Ghost require RAM to run (and function). While 1GB is effective for a few smaller websites, anything that requires a process to be long-running (such as a server instance powered by NodeJS), is going to consume more and more RAM over time. Very rarely will a single instance of anything only use a set amount of RAM indefinitely.