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 :)
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:
… 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 useswap
. You can’t (and wouldn’t want to) assign an app to useswap
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.