Need help with allocating extra RAM

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

CALLUM651

New Member
Jul 29, 2019
10
0
0
Hello, I have seen this on these forums before, and seen similar problems, but none the same as mine, I need to launch my Yogcraft server with more RAM, my ServerStart.bat currently reads:
Code:
ftbserver.jar -Xmx3072m -Xms3072m -jar "C:\Program Files (x86)\Java\jre7\bin\java.exe"
pause
I tried it with the default one that it comes with when you first download the server version, and this did not work so I had to direct it to Java (Internet says something to do with me being on Windows 8) I have 8GB of RAM and want to allocate 3GB Can somebody please help me as I have been trying for nearly 4 hours D:

Thanks in advance.
 

lavarthan

New Member
Jul 29, 2019
2,437
0
0
Welcome. I see your problem you are trying to run the 32bit version of Java with more than 1.5GB of RAM. 32bit Java programs are limited to 1.5GB. Uninstall all Java versions and restart your computer. Then download and install only the x64 version of Java from here and restart one more time to ensure everything is completed.

Your new bat file will contain the text below:
ftbserver.jar -Xmx3072m -Xms3072m -jar "C:\Program Files\Java\jre7\bin\java.exe"
pause
 
Last edited:
  • Like
Reactions: CALLUM651

CALLUM651

New Member
Jul 29, 2019
10
0
0
Just downloading it now, Will get back to you if I have any problems :) and thanks for the fast reply btw[DOUBLEPOST=1392326761][/DOUBLEPOST]Where do I put the new Java file?
 

CALLUM651

New Member
Jul 29, 2019
10
0
0
There is no Java folder...when I installed it, I literally got just a file...called 'jre-7u51-windows-x64[DOUBLEPOST=1392327644][/DOUBLEPOST]SOLVED IT....now just gotta set it up and restart...
 

lavarthan

New Member
Jul 29, 2019
2,437
0
0
That is the installer. Just double click on it and enter an admin password if necessary and let it install. Make sure you got the exe(cutable). The first Windows x64 one listed.
 

CALLUM651

New Member
Jul 29, 2019
10
0
0
Okay, so I have got that all up and running...now when I run the server (connected my iPv4 adress in properties) and hamachi, It still wont show up? any ideas on what the problem could be?
 

MajPayne21

New Member
Jul 29, 2019
185
0
0
Is the server on your local network? You may have a non-default port selected for the server. On your server, find the server.properties file and open it with a text editor (the file should be in the root minecraft directory with your ftb_server.jar). Find the line that names the port ("port=" or "server-port=" or something). When you put the server IP in your client, put IPaddress:port and see if that helps. Otherwise, check your hamachi settings. Is hamachi really necessary for your setup?

Sent from my SCH-I535 using Tapatalk
 

CALLUM651

New Member
Jul 29, 2019
10
0
0
Is the server on your local network? You may have a non-default port selected for the server. On your server, find the server.properties file and open it with a text editor (the file should be in the root minecraft directory with your ftb_server.jar). Find the line that names the port ("port=" or "server-port=" or something). When you put the server IP in your client, put IPaddress:port and see if that helps. Otherwise, check your hamachi settings. Is hamachi really necessary for your setup?

Sent from my SCH-I535 using Tapatalk
I have already tried this, :L Thanks for the fast reply though, any other suggestions?
 

CALLUM651

New Member
Jul 29, 2019
10
0
0
I heard that it was easier...How do I do it without?[DOUBLEPOST=1392333179][/DOUBLEPOST]I can port forward...then what?
 

MajPayne21

New Member
Jul 29, 2019
185
0
0
Where is your server located that you are trying to connect with it?

Is it on the same local network with you?

Sent from my SCH-I535 using Tapatalk
 

MajPayne21

New Member
Jul 29, 2019
185
0
0
Then you don't need Hamachi at all. Turn it off on both your client and server and find out the server's LAN IP. Simply attempt to connect to that IP on your client.

As long as you don't have any software level firewalls on your server, no further configuration should be required.

Sent from my SCH-I535 using Tapatalk
 

MajPayne21

New Member
Jul 29, 2019
185
0
0
The only time you need Hamachi is when you want to create a fake 'local' network between machines that are actually on separate networks, like if your friend from another state wanted to play a LAN game with you and you couldn't port forward.

Hamachi basically creates a Virtual Private Network. If you already are connected to the same local network, you don't need the 'virtual' part!

Sent from my SCH-I535 using Tapatalk
 

CALLUM651

New Member
Jul 29, 2019
10
0
0
Hmmm still not showing up...:L[DOUBLEPOST=1392335262][/DOUBLEPOST]Could I please request someone put aside the next 10 mins and write me a complete guide from the start...that would help alot xD thanks and sorry xD
 

MajPayne21

New Member
Jul 29, 2019
185
0
0
I think your server.bat is weird.

It should read "java <flags here> -jar ftbserver.jar".

When you run the Bat, it should pop up a minecraft server GUI (white box) on your server and you should be able to see when it is done starting up. Then you can try to connect to the server using the local IP of your server box and the correct port.

Sent from my SCH-I535 using Tapatalk
 

MajPayne21

New Member
Jul 29, 2019
185
0
0
I am going home from work soon and can post a known working server.bat in a little over an hour if you are still having issues.

Sent from my SCH-I535 using Tapatalk