With its first 5 6-player games running, the server was using 39MB RES. After ~196 6-player games, the server was using 536 MB RES. (And then it hung after failing to allocate memory to spawn an AI.)
I think the problem is keeping around too much data from old games. The basic information that's shown in the lobby is in the database, so it should be purged from the server's memory and looked up when needed.
With its first 5 6-player games running, the server was using 39MB RES. After ~196 6-player games, the server was using 536 MB RES. (And then it hung after failing to allocate memory to spawn an AI.)
I think the problem is keeping around too much data from old games. The basic information that's shown in the lobby is in the database, so it should be purged from the server's memory and looked up when needed.