Note: Never put more than one TF2 server on a VDS with only 1 GB of RAM regardless of player slots (+maxplayers launch parameter). SRCDS has a nasty habit of building up RAM usage over time, especially with plugins and extensions it can start at 400MB then gradually go up to 700MB+. Other OS and service processes (i.e. database, web server) on the VDS will also fight for memory.
Symptoms of a server dying due to running out of memory:
- Plugins become unresponsive to commands
- Plugins cannot be found and loaded despite being in the SM plugins folder
- Nobody can chat because the chat processor/colors plugin crashed
- Changing the map crashes the server
Symptoms of a server lagging due to an attempt to mitigate RAM shortage with disk swap space:
- Increased rubber band lag the longer the server is kept up
- Lag spike on player join
- Near 100% CPU usage by the Linux kernel swap daemon (kswapd), which leaves little CPU time for the game server(s)
This is the server memory usage on a Ubuntu VDS with a typical Jump Academy server setup as seen in
htop. This VDS also hosts a web server and database. Note the total VDS RAM usage in the bar chart at the top leaves no room for another SRCDS instance.
For a baseline, this is the minimal CentOS setup from the
Jump-server Starter Kit running SRCDS on the same map only uses about 100 MB less memory.
In both examples, the servers were empty. Memory use will only increase per in-game player.