dripton / Slugathon

Clone of the old Avalon Hill fantasy wargame Titan, using Python / PyGTK / Twisted
https://github.com/dripton/Slugathon/wiki
8 stars 2 forks source link

Memory leak in server #174

Closed dripton closed 11 years ago

dripton commented 11 years ago

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.