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
43 Replies
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
Send your start.bat, and how much ram do you actually have in total on your server??
also why the image lmao
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
why do you have 2 -Xms
but it doesnt anymore
sorry
but i changed and it still doesnt run
How much ram does your machine have
16G
Does the console just flicker open then closed?
Yes
but what i dont understand is that it was working before
alright, go to where your server.jar is, in cmd
ok
What's your server version?
1.8?
1.12.2
can you send the startup arg again?
Like the modified one
copy paste this and it should give the error of whats going on
"C:\Program Files\Java\jre-1.8\bin\java.exe" -Xmx5G -Xms8G -jar server.jar nogui this one?
-Xmx5G -Xms8Gmin and max are switched top should be ms, bottom mx
okay
nop
i even tried with less memory
(its like saying, with a max of 5GB and minimum of 8GB)
i switched back and the cmd still flickers
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
like put the bat in the folder?
hold on, your .bat to run the server is in the same folder as your server.jar right?
yes
do you know what cmd/command prompt is?
yes?
use command prompt, and cd into the folder where the .bat and server.jar is
i found a log file here
"C:\Program Files\Java\jre-1.8\bin\java.exe" -Xms5G -Xmx8G -jar server.jar --nogui
Use this
[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
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
okay
You likely have too many programs/some big programs hogging your ram, enough to not allow the mc server any
can this be related to components? i changed my processor and motherboard before this
Just don't preallocate smh
"C:\Program Files\Java\jre-1.8\bin\java.exe" -Xms128M -Xmx5G -jar server.jar --nogui
try this
i tried
Use this in the open command prompt in your server.jar folder
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.
32bit java?
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
how do i know?
type this in cmd
"C:\Program Files\Java\jre-1.8\bin\java.exe" -version
sounds like you are usi g 32bit java
id say certain based off the max heap message