Jump to content

Minecraft Server won't take more than 1.5GB

Go to solution Solved by x17andrew71x,

Should look something like this:

image.png.4de0c4f2cca09880b46d8a96601f0c25.png

Hi there!

 

Basically, I have this modded server on a dedicated computer 

SPECS:

Intel Xeon X5650 @2,7GHz (No overclock yet)

8GB of DDR3 RAM @1333MHz

Seagate 1TB 7200RPM HDD

Windows 10 Pro 64-bit, might change for Linux 

(If anything else is needed, feel free to ask)

 

I won't run anything else on the computer so I was willing to use 5-6GB of RAM for my server, since it has 48 mods on it. The point is I can't put anymore than 1500M of RAM for it or it will tell that it can't run on more memory. I was told by searching on internet that my Java needed to be in 64-bit. Which it is. I was also told that my OS needed to be 64-bit, and it is. But still, the server won't boot up with more than 1.5 GB.

 

I am running a 1.12.2 Forge server (version 2847) with the .jar.

 

TIA!

Link to comment
Share on other sites

Link to post
Share on other sites

Have you tried a code like this? This is mine. Not 48 mods though just 24

 

Spoiler

java -Xmx4096M -Xms4096M -jar forge.jar nogui
PAUSE

 

 

 

First watercooled System

Build Name: Frost

OS: Windows 11 Pro 64-bit

Monitor: Alienware AW3423DWF 1800R Curved Ultrawide 3440x1440 QD-OLED 157hz 10 bit 0.1ms

Chassis: Lian Li 011 Dynamic EVO w/ 2x120mm Corsair QL RGB Fans on the bottom 1x120mm on back exhaust

Top Rad & Fans:  Corsair 54mm 360mm w/ 3x120mm Corsair ML Pro RGB Fans

Side Rad & Fans: Corsair 30mm 360mm w/ 3x120mm Corsair QL RGB Fans

Motherboard: Asrock X670E Steel Legend

CPU: AMD Ryzen 7 7800X3D w/ Corsair XC7 RGB Pro w/ Kyrosheet

Memory/RAM: Corsair Dominator RGB DDR5 2x16GB 32GB 6000Mhz

GPU: Asus GeForce RTX 4080 TUF w/ EK-Quantum Vector2 Nickel/Plexi & Backplate

Pump/Reservoir: Corsair XD5 RGB

Coolant: EK Mystic Fog

PSU: EVGA Supernova 1000w G3 w/ custom modmesh black & white cables from cablemod

Boot/OS SSD: Samsung 970 EVO Plus 500GB NVMe

WZ/2042 SSD: Samsung 850 EVO 250GB

Game SSD: Samsung 980 Pro 1TB

Performance/Editing HDD: Western Digital Black 1TB

Storage HDD: Western Digital Blue 1TB

Mouse: Razer Lancehead Tournament Edition/Razer Mamba

Mouse Mat: Corsair MM700 RGB

Keyboard: Razer Ornata Chroma

Microphone: HyperX Quadcast

Headset: Razer Blackshark v2 Pro

Eyewear/Glasses: Gunnar Optiks Razer FPS

Camera: Razer Kiyo Pro

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, ChaosCGTV said:

Have you tried a code like this? This is mine. Not 48 mods though just 24

 

  Hide contents

java -Xmx4096M -Xms4096M -jar forge.jar nogui
PAUSE

 

 

 

Yes, that is how I started my server with 1.5GB of RAM (Xms and Xmx to 1500M) and as soon as I tried to put more it wouldn't work.

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, RedEdain said:

Yes, that is how I started my server with 1.5GB of RAM (Xms and Xmx to 1500M) and as soon as I tried to put more it wouldn't work.

You are launching the minecraft server jar file right, not the forge one?

First watercooled System

Build Name: Frost

OS: Windows 11 Pro 64-bit

Monitor: Alienware AW3423DWF 1800R Curved Ultrawide 3440x1440 QD-OLED 157hz 10 bit 0.1ms

Chassis: Lian Li 011 Dynamic EVO w/ 2x120mm Corsair QL RGB Fans on the bottom 1x120mm on back exhaust

Top Rad & Fans:  Corsair 54mm 360mm w/ 3x120mm Corsair ML Pro RGB Fans

Side Rad & Fans: Corsair 30mm 360mm w/ 3x120mm Corsair QL RGB Fans

Motherboard: Asrock X670E Steel Legend

CPU: AMD Ryzen 7 7800X3D w/ Corsair XC7 RGB Pro w/ Kyrosheet

Memory/RAM: Corsair Dominator RGB DDR5 2x16GB 32GB 6000Mhz

GPU: Asus GeForce RTX 4080 TUF w/ EK-Quantum Vector2 Nickel/Plexi & Backplate

Pump/Reservoir: Corsair XD5 RGB

Coolant: EK Mystic Fog

PSU: EVGA Supernova 1000w G3 w/ custom modmesh black & white cables from cablemod

Boot/OS SSD: Samsung 970 EVO Plus 500GB NVMe

WZ/2042 SSD: Samsung 850 EVO 250GB

Game SSD: Samsung 980 Pro 1TB

Performance/Editing HDD: Western Digital Black 1TB

Storage HDD: Western Digital Blue 1TB

Mouse: Razer Lancehead Tournament Edition/Razer Mamba

Mouse Mat: Corsair MM700 RGB

Keyboard: Razer Ornata Chroma

Microphone: HyperX Quadcast

Headset: Razer Blackshark v2 Pro

Eyewear/Glasses: Gunnar Optiks Razer FPS

Camera: Razer Kiyo Pro

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, ChaosCGTV said:

You are launching the minecraft server jar file right, not the forge one?

Yep, still doesn't work

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, RedEdain said:

Yep, still doesn't work

Try launching the .bat file with forge.jar?

First watercooled System

Build Name: Frost

OS: Windows 11 Pro 64-bit

Monitor: Alienware AW3423DWF 1800R Curved Ultrawide 3440x1440 QD-OLED 157hz 10 bit 0.1ms

Chassis: Lian Li 011 Dynamic EVO w/ 2x120mm Corsair QL RGB Fans on the bottom 1x120mm on back exhaust

Top Rad & Fans:  Corsair 54mm 360mm w/ 3x120mm Corsair ML Pro RGB Fans

Side Rad & Fans: Corsair 30mm 360mm w/ 3x120mm Corsair QL RGB Fans

Motherboard: Asrock X670E Steel Legend

CPU: AMD Ryzen 7 7800X3D w/ Corsair XC7 RGB Pro w/ Kyrosheet

Memory/RAM: Corsair Dominator RGB DDR5 2x16GB 32GB 6000Mhz

GPU: Asus GeForce RTX 4080 TUF w/ EK-Quantum Vector2 Nickel/Plexi & Backplate

Pump/Reservoir: Corsair XD5 RGB

Coolant: EK Mystic Fog

PSU: EVGA Supernova 1000w G3 w/ custom modmesh black & white cables from cablemod

Boot/OS SSD: Samsung 970 EVO Plus 500GB NVMe

WZ/2042 SSD: Samsung 850 EVO 250GB

Game SSD: Samsung 980 Pro 1TB

Performance/Editing HDD: Western Digital Black 1TB

Storage HDD: Western Digital Blue 1TB

Mouse: Razer Lancehead Tournament Edition/Razer Mamba

Mouse Mat: Corsair MM700 RGB

Keyboard: Razer Ornata Chroma

Microphone: HyperX Quadcast

Headset: Razer Blackshark v2 Pro

Eyewear/Glasses: Gunnar Optiks Razer FPS

Camera: Razer Kiyo Pro

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, ChaosCGTV said:

Try launching the .bat file with forge.jar?

It gives the same result.

 

Invalid maximum heap size: -Xmx4096M

The specified size exceeds the maximum representable size.

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occured. Program will exit.

Link to comment
Share on other sites

Link to post
Share on other sites

Make sure you are using 64bit Java btw.

 

Here's my starting script that is heavily modified for performance improvement by taking advantage of all that the garbage collection has to offer.

Starting Script: (Note the end portion will need your changing) This starts it at 5gb.

Spoiler

 


java -Xms5G -Xmx5G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar YOURSERVERJARNAME.jar

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, x17andrew71x said:

Make sure you are using 64bit Java btw.

 

Here's my starting script that is heavily modified for performance improvement by taking advantage of all that the garbage collection has to offer.

Starting Script: (Note the end portion will need your changing) This starts it at 5gb.

  Hide contents

 



java -Xms5G -Xmx5G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -Dusing.aikars.flags=mcflags.emc.gs -jar YOURSERVERJARNAME.jar

 

 

It gives again the same error shown in my lastest reply.

 

How can I be absolutely sure that I'm running 64-bit Java? (Which I'm now doubting I am)

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, RedEdain said:

It gives again the same error shown in my lastest reply.

 

How can I be absolutely sure that I'm running 64-bit Java? (Which I'm now doubting I am)

Open Command Prompt >> Type in: "java -version" (no quotes, there is a space after java)

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, x17andrew71x said:

Open Command Prompt >> Type in: "java -version" (no quotes, there is a space after java)

java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode)

 

This is the result I get

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, x17andrew71x said:

Should look something like this:

image.png.4de0c4f2cca09880b46d8a96601f0c25.png

Looks like I didn't had the right version. I found how to download the proper one and it is now working, thank you so much!

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, RedEdain said:

java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode)

 

This is the result I get

You do not have 64bit java, download and install the version provided above in the link posted previously. You will need to create an oracle account, they've now forced that requirement. But its free, just annoying...

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×