Jump to content

Players can't join when i allocate more RAM to Server 1.15.2


Recommended Posts


I have a working Forge server 1.15.2 for minecraft (hosted locally on my PC) with mods that myself and a friend can join.

However the server only has 256mb of RAM allocated. I found a simple way on youtube how to allocate more RAM using a "run.bat" file.

Here is what my "run.bat" file looks like:


java -Xms1024M -Xmx1024M -jar server.jar


The issue is now my friend cannot connect to the server after I allocate 1gb of RAM. I can still connect and play on the server though.



-We are using hamachi.

-I removed the run.bat file and used to default 256mb of RAM to host the server afterwards and my friend could connect once again.

Edited by aussy
Link to comment
Share on other sites

Hmm that's odd, batch files just tell windows to run that same file with the ability to use more system memory without actually changing the structure of the program. Are you using localhost to connect? Is he typing in the right stuff each time? Is there a specific error or is it just "timed out"? Maybe try creating a new hamachi server?

Link to comment
Share on other sites

-Im not sure how to tell if im using localhost host the connect. i'm using my IPV4 address in hamachi.
-She is typing the correct IP Address.

-The error message is "connection timed out. no further information".

-We have tried 2 hamachi servers so far.

-I have tried -nogui in the .bat file.


Starting the server without the .bat file still works for her. Its just laggy and crashes after a minute or two.

Link to comment
Share on other sites

Issue Solved!
Reason: Updated the .bat file from java to javaw (Java.exe doesnt work outside the firewall, Javaw.exe does)


@echo off
"C:\Program Files (x86)\Java\jre1.8.0_241\bin\javaw.exe" -Xms1024M -Xmx1024M -jar server.jar

Thank you for the time and help JonTNGN    ❤️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.