I've tried everything. The .bat file method, I've tried running it through CMD, I've even tried editing the Runtime Parameters in Java through Control Panel.
Nothing. The game will simply not use any more RAM.
I can tell it needs to, because I can see the used memory go as high as 476MB and I feel that the game is forcing itself to not go over the limit, but I want to give it 1 gigabyte. My performance is no where near bad but I want it to be better,
Is there anything I can do?
I'm desperate.
Rollback Post to RevisionRollBack
"It is no sign of healthiness to be adapted to a sick society."
The game is "forcing itself to not go over the limit" only in that before Java expands the heap it WILL run a garbage collections cycle (which it does periodically), and if the used memory goes down substantially, then it will not expand. Why would it? It didn't need to.
java uses garbage collection for memory management. This means that programs allocate memory and don't worry about freeing it. Based upon various triggering conditions Java itself runs through a process called 'garbage collection' where it determines what used memory is no longer actually in use and frees it. This is why you'll notice that the 'used' memory on the F3 screen has a 'stair step' like behavior. used memory gradually goes up, then it suddenly goes down (GC'd), and repeats. This is also why having too much memory can lead to 'stuttering'. If you have too much memory, then Java can use more and more and more, and not 'need' to do garbage collection (not be triggered to do it), and then once it is triggered, there's so much garbage that needs to be cleaned that your game performance is impacted by this unnecessarily large maintenance task.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Nothing. The game will simply not use any more RAM.
I can tell it needs to, because I can see the used memory go as high as 476MB and I feel that the game is forcing itself to not go over the limit, but I want to give it 1 gigabyte. My performance is no where near bad but I want it to be better,
Is there anything I can do?
I'm desperate.
java uses garbage collection for memory management. This means that programs allocate memory and don't worry about freeing it. Based upon various triggering conditions Java itself runs through a process called 'garbage collection' where it determines what used memory is no longer actually in use and frees it. This is why you'll notice that the 'used' memory on the F3 screen has a 'stair step' like behavior. used memory gradually goes up, then it suddenly goes down (GC'd), and repeats. This is also why having too much memory can lead to 'stuttering'. If you have too much memory, then Java can use more and more and more, and not 'need' to do garbage collection (not be triggered to do it), and then once it is triggered, there's so much garbage that needs to be cleaned that your game performance is impacted by this unnecessarily large maintenance task.