Sunday, September 25, 2011

I don't think this is normal ...

Ok, programm works great, solarsystems look much better now, but only in a wip sense, have to work on that.
But when i checked how much ram my program ate i was confused



i then checked for memory leaks but found nothing when i anaylzed the heap [ except that storing 4k solarsystems with ~9 stars inside of each with corresponding images eats quite a lot of ram ]

i went into an irc channel and checked it out further just to be relieved.
a user called djdduty [ thanks to you! ] tested my programm to reveal  it uses ~ 100 - 150MB of ram on his machine.


aparently i have a 32bit jre and jdk installed on my 64bit machine as well as the 64bit counterpart.
i have to use 64bit native interface for lwjgl because i have a 64bit machine and this appears to be the point where the magic happends that extends my ram usage by 13x times.

i might uninstall the 32bit jre&jdk to fix that, but as of now i can continue programm without worrying about the memory usage because 100+ mb seems totally ok for me. when i checked the heap i found out that all those little images eat not as much space as i thought, so i am on the safe site here as well.

No comments:

Post a Comment