when allocate memory the server doesnt open

i am trying to run a server but when i try to use that .bat to allocate more memory it just doesnt open the server
No description
43 Replies
Admincraft Meta
Admincraft Meta6mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by .speedgaming#0
Skullians
Skullians6mo ago
Send your start.bat, and how much ram do you actually have in total on your server?? also why the image lmao
Speedgaming²
Speedgaming²OP6mo ago
sorry about the image discord gave the option "C:\Program Files\Java\jre-1.8\bin\java.exe" -Xms5G -Xms6G -jar server.jar nogui like it was running
Logic
Logic6mo ago
why do you have 2 -Xms
Speedgaming²
Speedgaming²OP6mo ago
but it doesnt anymore sorry but i changed and it still doesnt run
Logic
Logic6mo ago
How much ram does your machine have
Speedgaming²
Speedgaming²OP6mo ago
16G
Logic
Logic6mo ago
Does the console just flicker open then closed?
Speedgaming²
Speedgaming²OP6mo ago
Yes but what i dont understand is that it was working before
Logic
Logic6mo ago
alright, go to where your server.jar is, in cmd
Speedgaming²
Speedgaming²OP6mo ago
ok
iamcxv7
iamcxv76mo ago
What's your server version? 1.8?
Speedgaming²
Speedgaming²OP6mo ago
1.12.2
iamcxv7
iamcxv76mo ago
can you send the startup arg again? Like the modified one
Logic
Logic6mo ago
copy paste this and it should give the error of whats going on
Speedgaming²
Speedgaming²OP6mo ago
"C:\Program Files\Java\jre-1.8\bin\java.exe" -Xmx5G -Xms8G -jar server.jar nogui this one?
Logic
Logic6mo ago
-Xmx5G -Xms8G
min and max are switched top should be ms, bottom mx
Speedgaming²
Speedgaming²OP6mo ago
okay nop i even tried with less memory
Logic
Logic6mo ago
(its like saying, with a max of 5GB and minimum of 8GB)
Speedgaming²
Speedgaming²OP6mo ago
i switched back and the cmd still flickers
Logic
Logic6mo ago
the flickering is why i said to go to the folder in cmd, because when you run it through there the error wont just go away with the window closing through the bat
Speedgaming²
Speedgaming²OP6mo ago
like put the bat in the folder?
Logic
Logic6mo ago
hold on, your .bat to run the server is in the same folder as your server.jar right?
Speedgaming²
Speedgaming²OP6mo ago
yes
Logic
Logic6mo ago
do you know what cmd/command prompt is?
Speedgaming²
Speedgaming²OP6mo ago
yes?
Logic
Logic6mo ago
use command prompt, and cd into the folder where the .bat and server.jar is
Speedgaming²
Speedgaming²OP6mo ago
i found a log file here
iamcxv7
iamcxv76mo ago
"C:\Program Files\Java\jre-1.8\bin\java.exe" -Xms5G -Xmx8G -jar server.jar --nogui Use this
Speedgaming²
Speedgaming²OP6mo ago
[14:15:05] [Server thread/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:-1]: ... 35 more [14:15:05] [Server thread/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:-1]: Caused by: java.lang.OutOfMemoryError: Java heap space [14:15:06] [Server Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server [14:15:06] [Server Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds
iamcxv7
iamcxv76mo ago
Xmx should always be higher than Xms Outofmemory... "C:\Program Files\Java\jre-1.8\bin\java.exe" -Xms128M -Xmx5G -jar server.jar --nogui Use this Your system is running out of mem Don't preallocate ig
Speedgaming²
Speedgaming²OP6mo ago
okay
Logic
Logic6mo ago
You likely have too many programs/some big programs hogging your ram, enough to not allow the mc server any
Speedgaming²
Speedgaming²OP6mo ago
can this be related to components? i changed my processor and motherboard before this
iamcxv7
iamcxv76mo ago
Just don't preallocate smh "C:\Program Files\Java\jre-1.8\bin\java.exe" -Xms128M -Xmx5G -jar server.jar --nogui try this
Speedgaming²
Speedgaming²OP6mo ago
i tried
Logic
Logic6mo ago
Use this in the open command prompt in your server.jar folder
Speedgaming²
Speedgaming²OP6mo ago
okay Invalid maximum heap size: -Xmx5G The specified size exceeds the maximum representable size. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Logic
Logic6mo ago
32bit java?
Skullians
Skullians6mo ago
nope can be the same and if you’re using Aikar flags which you should be, they have to be the same for the flags to function iirc
Speedgaming²
Speedgaming²OP6mo ago
how do i know?
Logic
Logic6mo ago
type this in cmd "C:\Program Files\Java\jre-1.8\bin\java.exe" -version
Lunaiskey
Lunaiskey6mo ago
sounds like you are usi g 32bit java id say certain based off the max heap message

Did you find this page helpful?