Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

RE: WitPTracker AE Release 1.10 Available!

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> RE: WitPTracker AE Release 1.10 Available! Page: <<   < prev  195 196 197 198 [199]
Login
Message << Older Topic   Newer Topic >>
RE: WitPTracker AE Release 1.10 Available! - 10/13/2020 5:27:58 PM   
Nomad

 

Posts: 4705
Joined: 9/5/2001
From: West Yellowstone, Montana
Status: offline
Food for thought, mostly for Floyd and Damien.

Using the memory switches: -Xms256m -Xmx756m

While the database is loading, before the GUI comes up the memory
committed starts about 256MB and then climbs to a little over 300MB
The working memory starts about 132MB and climbs to about 200MB
When the GUI pops up the committed memory jumps to about 620MB and
the working to about 530MB.

The most important item is that these numbers are the same whether
I am loading a tracker with 4 turns or one with 356 turns.

These were with loading the map.

with the nomap switch the loading memory stays the same, but the
memory used with the GUI active is cut in half. I am waiting for
turn to see what the memory looks like when loading a turn.

What started this was I started to wonder if increasing the -Xms to 768m
would shorted the load times, but it didn't. It committed over 800MB of
memory and the working started at about 260MB and climbed, but the database
load time stayed the same.

Loading a turn takes about 170MB or so of committed memory, which if you are
loading the turn with the map active will cause a hard page fault( this only
means the the system has to page some of the used memory to either a paged memory
area or to disk ). Without the map loaded the committed memory never comes close to
the 768MB maximum I have specified. This is with a tracker database that has
about 360 turns loaded and the database is 1.314GB in size, over twice the size
of the maximum allowed memory.


< Message edited by Nomad -- 10/14/2020 2:04:13 AM >


_____________________________


(in reply to rsallen64)
Post #: 5941
RE: WitPTracker AE Release 1.10 Available! - 10/15/2020 1:38:21 AM   
floydg

 

Posts: 2017
Joined: 6/27/2004
From: Middletown, NJ
Status: offline
I'm not that good with memory management.
When a turn is read in, there are two databases: the old turn and the current turn. Then I run through to see what's different to make alerts, then toss the old turn.
Other than a total overhaul, there isn't much I can think of to reduce memory usage.

(in reply to Nomad)
Post #: 5942
RE: WitPTracker AE Release 1.10 Available! - 10/15/2020 2:23:57 AM   
Nomad

 

Posts: 4705
Joined: 9/5/2001
From: West Yellowstone, Montana
Status: offline
Can you tell me what you store in the file trackerdb.data? I thought that it might be connected to alerts, but when I trimmed my alerts
to only the last 10 days, the file size did not change.

I think the important thing is that there is no need to increase -Xmx to 1024m, it does not seem to be needed. To me an -Xmx of 768m seems to be optimal
and is large enough to load the map. I do think that the Windows memory manager has problems, and it might be more advantages to use an -Xms of 768m
to allot all of the necessary memory up front. I think that tracker needs to have contiguous memory and when some other process asks for some memory
while tracker is working Windows fragments the memory. And I think that is why people are getting the error for not enough memory resources. I have
32GB of memory on my computer so I am never short of actual memory, but on occasion I get that error. But mostly if I close everything and reboot the
problem goes away. On rare occasions I have to do the power down, pull power plug, hold power button down for 10 seconds and the restart all to get
the error to clear. I just do not think it is a tracker problem, but a Windows or possibly a Java problem.

Of further note, the error only happens when you try and load a new turn. So there is some problem obtaining the 170Mb or so that is needed to load
a new turn. Anyway, I have provided some information and I hope others can use it to solve their problems.

< Message edited by Nomad -- 10/15/2020 2:24:26 AM >


_____________________________


(in reply to floydg)
Post #: 5943
RE: WitPTracker AE Release 1.10 Available! - 10/15/2020 3:57:57 AM   
FeurerKrieg


Posts: 3397
Joined: 6/15/2005
From: Denver, CO
Status: offline
I periodically post this, and it seems timely. I keep two tracker folders going. One daily and one that is semi-monthly. I reset the database on the daily one every 4 game months or so since that stuff isn't as important after some time goes by. But I can still look at long term trends using the semi-monthly folder. Works great for me - maybe helpful to someone.

_____________________________


Upper portion used with permission of www.subart.net, copyright John Meeks

(in reply to Nomad)
Post #: 5944
RE: WitPTracker AE Release 1.10 Available! - 10/15/2020 6:01:10 PM   
floydg

 

Posts: 2017
Joined: 6/27/2004
From: Middletown, NJ
Status: offline
Nomad: the trackerdb.data file contains the SQL database, including the static information (ship classes, aircraft info, LCU TOE, scenario info) and the per-turn changes as a "delta" record (one record per change). The delta record stuff is why the DB explodes and startup is a factor of turns loaded. Sub-optimal initial design; I probably should do something different, but that's a lot of coding work now.

(in reply to FeurerKrieg)
Post #: 5945
RE: WitPTracker AE Release 1.10 Available! - 10/17/2020 10:57:19 PM   
NiclasCage

 

Posts: 41
Joined: 9/28/2019
Status: offline
What does the number in parentheses mean behind ship damage?

I've got a line looking like this;

BB Arizona - Pearl Harbor - 5(speed) - 61(sys) - 58(39)(flt) - 40(24)(eng) - 0(fire) - 1(weapon)....

(in reply to floydg)
Post #: 5946
RE: WitPTracker AE Release 1.10 Available! - 10/17/2020 11:13:35 PM   
Nomad

 

Posts: 4705
Joined: 9/5/2001
From: West Yellowstone, Montana
Status: offline
That is the major float and/ or engine damage.

_____________________________


(in reply to NiclasCage)
Post #: 5947
RE: WitPTracker AE Release 1.10 Available! - 10/17/2020 11:53:21 PM   
NiclasCage

 

Posts: 41
Joined: 9/28/2019
Status: offline
Thank you! I had another issue though. I ended up deleting and reinstalling witptracker and that fixed it, but after loading a certain savegame in tracker and then later overwriting that save in the game, witptracker still loaded up the database from my first savegame. I tried editing the properties-file and moving my save to another number etc, but it still just loaded up the same old database. Might very well be an error on my part, but it seemed strange.

(in reply to Nomad)
Post #: 5948
RE: WitPTracker AE Release 1.10 Available! - 10/18/2020 1:43:09 PM   
Hanzberger


Posts: 921
Joined: 4/26/2006
From: SE Pennsylvania
Status: offline
Ok there appears to be a java update which killed tracker. I tried dl the old version, which is 6? but the site is having issues ATM. Has anyone experienced issues with tracker? Checking my PC it looks like my current java version is jre1.8.0_241
Tracker will not load any more turns. Maybe it is another issue?

_____________________________

Planning for #17 Ironman Tier2

Japan AC wire chart here
http://www.matrixgames.com/forums/tm.asp?m=2769286&mpage=1&key=?

(in reply to NiclasCage)
Post #: 5949
RE: WitPTracker AE Release 1.10 Available! - 10/18/2020 7:00:40 PM   
floydg

 

Posts: 2017
Joined: 6/27/2004
From: Middletown, NJ
Status: offline

quote:

ORIGINAL: Hanzberger

Ok there appears to be a java update which killed tracker. I tried dl the old version, which is 6? but the site is having issues ATM. Has anyone experienced issues with tracker? Checking my PC it looks like my current java version is jre1.8.0_241
Tracker will not load any more turns. Maybe it is another issue?


I just tried with 1.8.0.261 and it worked.

Floyd

(in reply to Hanzberger)
Post #: 5950
RE: WitPTracker AE Release 1.10 Available! - 10/18/2020 7:06:08 PM   
Nomad

 

Posts: 4705
Joined: 9/5/2001
From: West Yellowstone, Montana
Status: offline
I am using version 1.8.0.271 of the 32 bit Java and it works fine. Are you sure you are using the 32 bit version? the 64 bit version will not load a turn.

< Message edited by Nomad -- 10/18/2020 7:12:56 PM >


_____________________________


(in reply to floydg)
Post #: 5951
RE: WitPTracker AE Release 1.10 Available! - 10/19/2020 1:11:09 AM   
Hanzberger


Posts: 921
Joined: 4/26/2006
From: SE Pennsylvania
Status: offline
Not sure what version it is. I believe it updated this morning. Not sure why your versions seem to be newer. I only have 50+ turns and cannot load anymore. Java was the only thing I could think of.

_____________________________

Planning for #17 Ironman Tier2

Japan AC wire chart here
http://www.matrixgames.com/forums/tm.asp?m=2769286&mpage=1&key=?

(in reply to Nomad)
Post #: 5952
RE: WitPTracker AE Release 1.10 Available! - 10/19/2020 1:27:57 AM   
Hanzberger


Posts: 921
Joined: 4/26/2006
From: SE Pennsylvania
Status: offline
Ok so it is trying to run a a 64 bit. Now to figure out how to fix this.....

Ok back working! Thanks guys. Lost a turn, but no biggie.

BTW do you guys have both 64 and 32 bit versions installed?
and do they have to be on the same HD as the game, I ask because I am almost out of room on my main HD.

< Message edited by Hanzberger -- 10/19/2020 1:36:12 AM >


_____________________________

Planning for #17 Ironman Tier2

Japan AC wire chart here
http://www.matrixgames.com/forums/tm.asp?m=2769286&mpage=1&key=?

(in reply to Hanzberger)
Post #: 5953
RE: WitPTracker AE Release 1.10 Available! - 10/19/2020 2:06:49 AM   
floydg

 

Posts: 2017
Joined: 6/27/2004
From: Middletown, NJ
Status: offline
I have only the 32-bit version installed. If you have both, you can force the JRE to be 32-bit by using the full path to the JRE in the witptracker.bat file.

(in reply to Hanzberger)
Post #: 5954
RE: WitPTracker AE Release 1.10 Available! - 10/19/2020 3:27:47 AM   
Nomad

 

Posts: 4705
Joined: 9/5/2001
From: West Yellowstone, Montana
Status: offline
Here is what I did. I put the 32 bit version in a non standard location and use the complete path to it in my tracker.bat file.

If you don't put the 32 bit version in a non standard location the Java updater will uninstall it. Or at least it did.

My batch file:

"c:\32 bit java\installation\bin\java.exe" -Xms768m -Xmx768m -jar "WitPTracker.jar"
pause

_____________________________


(in reply to floydg)
Post #: 5955
Page:   <<   < prev  195 196 197 198 [199]
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> RE: WitPTracker AE Release 1.10 Available! Page: <<   < prev  195 196 197 198 [199]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.707