ORIGINAL: floydg
ORIGINAL: Lokasenna
ORIGINAL: Lokasenna
I keep running into this intermittent and unpredictable issue when trying to read in a new turn:
System memory usage at 47% (of 32GB). I've fiddled with the -Xms and -Xmx tags and it doesn't seem to matter whether I put 512, 768, or 1024 in any of them, in any combination.
I haven't changed anything and Trackers "installed" in different folders on my desktop never had this issue.
Sometimes closing other apps and re-loading Tracker, then trying the turn again, would work. Today it isn't working.
Any help tracking this down? It's highly irritating and it is only happening with this instance of Tracker, not those I use(d) for other games. It's the exact same Tracker files, just in a different subfolder.
Edit to add:
Windows 10
Tracker version 1.10
java -showversion
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Edit 2:
Just tried it 3 more times and it worked this time. I closed another app that may use Java but... WTH?
Still having this issue, and only with one particular Tracker folder.
I've played around with the maximum heap space (-Xmx) number and can't figure it out or resolve it. I'm in 64-bit Windows, but I think it's 32-bit Java VM?
Shouldn't the 32-bit Java VM allow values of -Xmx up to 1.6 GB? (https://java2blog.com/could-not-reserve ... ject-heap/)
More to the point, why is this happening for a game save file that's still in January 1942? The database isn't very big at all yet.
And why doesn't it happen with my other Tracker folder that is also playing the Allies, is in 1943, and uses -Xms512m -Xmx512m in its command line? Why wouldn't that one run out of heap space? It doesn't - it works fine.
When Tracker loads up, it's in the ~440-480MB range in my task manager. How does it not have enough space between 400M and the 1300M that I have been able to set the -Xmx on to load a turn? It makes zero sense.
Edit 2: I made a fresh folder, switched back to -Xms512m -Xmx512m (which I'd already tried and are the same parameters on my other functioning Trackers), and then loaded a fresh database. I then loaded the new turn. It worked. When I looked at how much RAM it was taking up, it was over 600MB. If the heap stack space is limited to 512MB... This makes no sense to me.
I've never been an expert at memory management. It could be related to how the program processes the data, so it could be situation-specific. I know the program is long overdue for a re-work to fix the load times, which could address this. But finding the time is a challenge.
What boggles my mind about it is that it appears specific only to this one folder on my desktop. I can (and did) make a copy and run that one, and it works. But that folder's copy doesn't.