Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello,

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
PAUSE

 

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.

 

Notes:

-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

Is your run.bat file pointing to the right server file? is server.jar the same file you're executing when you don't use the .bat?

  • Author

Yes it is pointing to the correct server file "server.jar".

Yes the server.jar file is the file i used when i don't use the .bat file.

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?

Also if you get it to work, add -nogui on the end of your first line before pause in the batch file. That will disable the white gui and you will notice a significant improvement in memory allocation.

  • Author

-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.

  • Author

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
PAUSE

Thank you for the time and help JonTNGN    ❤️

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.