New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Optimizing a low end Debian VPS for lower memory footprint
Hello.
I've got a low end VPS with 128 mb RAM and Debian Wheezy on it. I use it to host static content with nginx and a Multi Theft Auto: San Andreas game server.
I'd like to optimize it as much as possible, so it does only what I need and doesn't waste resources on unnecessary stuff.
I've already tried disabling certain services from startup, also removed some packages suggested by deborphan. The usual memory usage (subtracting caches and buffers) oscillates around 20 mb when there are four players on the server.
Could you help me to further optimize the machine? I can provide anything needed.
'service --status-all':
pastebin.com/yRATNAFD
Comments
I think there was Low End wiki. The tutorial about optimizing 64MB box. But when I try to search it, it seems wiped out.
http://lowendbox.com/blog/yes-you-can-run-18-static-sites-on-a-64mb-link-1-vps/
pretty sure you can't run a mta server on 128mb box
You can, I've done it on a 64MB box with three+ players just fine.
Thanks, I'll have a look at it later.>
@zionvps said:
Why do you think so? Have you got any experience with running it on low memory boxes?
Thanks man
I tried replacing OpenSSH with Dropbear as that blog post suggested, but it didn't quite work well for me. It didn't show a message about last login when I logged in which was really handy.
I didn't switch to syslog-ng from rsyslog either because it had quite a lot of dependencies and I actually want it lighter, not heavier
So can anything else be done to it, or is it already as optimized as can be?
just try this https://github.com/Xeoncross/lowendscript
On Wheezy, replace rsyslog with inetutils-syslogd for minimal-memory logging.