Hello.
I have a 16GB Dedicated Machine and I run a private server for a Java game. I run it using a batch file, and allocate a maximum amount of memory it's allowed to use with -xmx args. My problem is, I usually have 10000MB if not more available memory on the machine, but I am only allowed to allocate 1600MB. This makes it so that once the game hits that amount of usage, it runs out of memory and crashes unless I restart it manually before that happens. It also makes the game run slower once it almost caps.
My question is, how do I enable the game to use more memory, as there's a lot of memory available that I seem to be unable to use?
Best regards
Dedicated Machine - Memory usage limits?
-
OS PVP
- New to forums

- Posts: 3
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sun Oct 19, 2014 4:52 am
Re: Dedicated Machine - Memory usage limits?
Are you sure you have the 64 bit version of Java installed, allowing larger amounts of memory to be allocated? Do you get any specific errors launching the game with larger amounts of memory?
Re: Dedicated Machine - Memory usage limits?
The error I get is "Error occured during initialization of VM, couldn't reserve blabla KB". So if I set to to use 2000MB instead of 1600, I get that even though there's 12000MB of memory available.Spray wrote:Are you sure you have the 64 bit version of Java installed, allowing larger amounts of memory to be allocated? Do you get any specific errors launching the game with larger amounts of memory?
I'll check what Java version I have installed now.
Re: Dedicated Machine - Memory usage limits?
Hey, that's fucking fantastic. That was the issue - I was running a 32 Bit version of Java. I am now able to allocate as much memory as I'd like.OS PVP wrote:The error I get is "Error occured during initialization of VM, couldn't reserve blabla KB". So if I set to to use 2000MB instead of 1600, I get that even though there's 12000MB of memory available.Spray wrote:Are you sure you have the 64 bit version of Java installed, allowing larger amounts of memory to be allocated? Do you get any specific errors launching the game with larger amounts of memory?
I'll check what Java version I have installed now.
Thank you <3
Re: Dedicated Machine - Memory usage limits?
You're welcome, I'm glad to hear you were able to get this resolved.OS PVP wrote:Hey, that's fucking fantastic. That was the issue - I was running a 32 Bit version of Java. I am now able to allocate as much memory as I'd like.OS PVP wrote:The error I get is "Error occured during initialization of VM, couldn't reserve blabla KB". So if I set to to use 2000MB instead of 1600, I get that even though there's 12000MB of memory available.Spray wrote:Are you sure you have the 64 bit version of Java installed, allowing larger amounts of memory to be allocated? Do you get any specific errors launching the game with larger amounts of memory?
I'll check what Java version I have installed now.
Thank you <3
