Errors when trying to create dedicated server

  • Hi,
    I am trying to start a dedicated server and get the following error:


    Error Occurred during initialization of VM
    Could not reserve enough space for 3145728KB object heap
    Press any key to continue . . .


    I am running the server on a machine with 64GB of ram, so dedicating 3GB shouldn't be a problem.


    here is my bat file:


    @echo off
    setlocal
    for /f "tokens=1* delims==" %%i in (C:\RisingWorld\server.properties) do (
    if "%%i"=="server_memory" set mem=%%j
    )
    if "%mem%"=="" set mem=3072
    java -Xmx%mem%m -jar C:\RisingWorld\server.jar
    pause
    endlocal




    I do not have a memory value set in my server.properties

  • The batch script first checks if the server_memory value is set in the server.properties file. Only if the memory variable isn't set, it will be set to 3072 mb in your case. However, usually the server_memory field does exist in the server.properties file (by default it's set to 2048 mb), so I'd recommend to change the memory value there as well ;)


    However, in your case it looks like there is only a 32 bit JRE installed on your server. Unless you're running a 32 bit OS, you can find the latest 64 bit version of Java here (download "Windows Offline (64-bit)"): https://www.java.com/en/download/manual.jsp

  • The last reply was more than 365 days ago, this thread is most likely obsolete. It is recommended to create a new thread instead.

    • :)
    • ;)
    • :(
    • :P
    • ^^
    • :D
    • :verysad:
    • ;(
    • X(
    • :*
    • :|
    • :crazy:
    • :lol:
    • :dizzy:
    • =O
    • <X
    • ||
    • :thinking:
    • :wacko:
    • :/
    • 8)
    • :wat:
    • :huh:
    • :silenced:
    • :wow:
    • 8|
    • :angry:
    • :thumbdown:
    • :thumbup:
    • :sleeping:
    • :hushed:
    • :nerd:
    • :saint:
    • :drooling:
    • :love:
    • :monocle:
    • :poo:
    • :party:
    • :drunk:
    • <3
    • :!:
    • :?:
    The maximum number of attachments: 10
    Maximum File Size: 1 MB
    Allowed extensions: 7z, avi, bmp, dds, gif, jpeg, jpg, json, log, lua, mp3, mp4, ogg, pdf, permissions, png, properties, rar, txt, xml, zip

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!