Dedicated Machine - Memory usage limits?

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
OS PVP
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Oct 19, 2014 4:52 am

Dedicated Machine - Memory usage limits?

Post by OS PVP »

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
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: Dedicated Machine - Memory usage limits?

Post by Spray »

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?
OS PVP
New to forums
New to forums
Posts: 3
Joined: Sun Oct 19, 2014 4:52 am

Re: Dedicated Machine - Memory usage limits?

Post by OS PVP »

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?
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.

I'll check what Java version I have installed now.
OS PVP
New to forums
New to forums
Posts: 3
Joined: Sun Oct 19, 2014 4:52 am

Re: Dedicated Machine - Memory usage limits?

Post by OS PVP »

OS PVP wrote:
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?
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.

I'll check what Java version I have installed now.
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.

Thank you <3
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: Dedicated Machine - Memory usage limits?

Post by Spray »

OS PVP wrote:
OS PVP wrote:
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?
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.

I'll check what Java version I have installed now.
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.

Thank you <3
You're welcome, I'm glad to hear you were able to get this resolved.
Post Reply