I’ve experienced similar memory problems. I think I mentioned it before but I couldn’t tell you where.
Basically, the TBK CCG game I’m working on has an extreme amount of automation. It includes a combat computer that automatically sets up combat and calculate results. The module causes Java to uses an incredible amount of memory and the more the module is used, the higher the memory is consumes. It’s like it’s not releasing any memory as the game goes on. Here’s some examples:
Here’s the java.exe memory using
Start Game - 856,156 K
After one player selects a character to use - 959,188 K
Starting Round 1 - 970,440 K
Drawing a Creature Card and opening the Combat Computer - 999,740 K
Fight first combat segment - 1,001,812 K
Fight second combat segment - 1,003,032 K
Fight third combat segment (creature killed) - 1,003,828 K
At this point the combat computer is closed, the card removed. Draw new creature.
Draw new creature, combat computer reopened - 1,004,992 K
Fight first combat segment - 1,005,912 K
Fight second combat segment - 1,006,696 K
Fight third combat segment - 1,007,448 K
Fight fourth combat segment (creature killed) - 1,008,368 K
This demo is with just one person in the game encountering 2 creature cards. As you can see, Java memory just keeps piling up the memory usage till the game bogs down and crashes under it’s own weight. It seems that any action, even just moving a card from here to there, increases the memory usage and never let’s it go.
The simple act of closing the game has run up the memory to 1,119,228 K
I’ve clicked the button for not wanting to save a game so the game is now closed and the memory is still set to 1,092,248 K