By leo
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 :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.