How can I optimize my 5$ droplet? Ubuntu 12.10

Posted July 10, 2014 3.8k views

I have the following things installed on it :
LAMP - No one except me use my website. The website is basic html, nothing more.
Teamspeak 3 server
Nginx - only using nginx for RTMP streaming (almost never). Its off 95% of the time.

I feel like I’m running out of ram, or that the cpu can’t handle my server…

I have a bot that uses Java to deliver music to my Teamspeak 3 server, but I limit the bot’s ram usage to about 50mb, but its having a hard time keeping the song smooth.

Anyone know what I can do to optimize my server?
I already created a 1G swap file

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.

Submit an Answer
2 answers

You can start by uninstalling PHP since your website is html, unless RTMP streaming is using it. Stop nginx when not using.

How much memory is actually being used? See Help! Linux ate my RAM!.

See if you can increase the bot’s memory limit. I would also look into switching from Apache to nginx completely: How To Migrate from an Apache Web Server to Nginx on an Ubuntu VPS.

by Justin Ellingwood
Apache and Nginx are both powerful web servers that can reliably host web content on the internet. While Apache is the currently the most popular web server in the world, Nginx is rapidly gaining converts due to its low resource usage. In this guide, we will discuss how to migrate from Apache to Nginx.
  • I only use Nginx to stream. So it’s off most of the time anyways. I just like Apache better because it works as is. I followed some tutorial on how to reduce Apache’s mem limit because I’m the only one who access it. It only use 1 or 2 php page, it doesn’t do anything big at all.
    What I did do though is try creating a separate 5$ droplet and ran the bot on there. The were little to no lag or choking. so I’m assuming that a 5$ server is not enough for the bot.