MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
296 stars 286 forks source link

Dedicated Server not releasing memory after game completion or /reset - Dangling references? #5703

Open PirateofMRC opened 3 months ago

PirateofMRC commented 3 months ago

Environment

Megamek 49.19.1- Java v 17. 35284 Ram available on service w/ 4G Ram on server.

Description

Server does not seem to "release" memory at the end of a game - instead, it holds onto memory and increases every time a player joins or starts a new game despite /reset and completing a game. See attached screenshot showing multiple games played, reboot, 1 game played (to ~52% memory) second game (to ~75% memory) and a 3rd game played untill crash, then reboot. Attached log

Server is only running Megamek Service.

Files

megamek.log image

PirateofMRC commented 3 months ago

players joining server to spectate, loading lists, or adding princess all seem to increase memory usage, and again not releasing when player leaves.