Server Lag on my own host

  • 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

alexb75000

New Member
Jul 29, 2019
4
0
0
i am playing direwolf20's server and i have been hosting it for me and my friends to play on it. me being the host have experienced lag like breaking a block then it reappearing and basically mobs teleporting ect. i have seen something about making a custom bat file to start my server or something but i dont understand how to do that. if someone could explain to me how to do that please do! thanks :)
 

glasspelican

New Member
Jul 29, 2019
187
0
0
Please post your cpu model number, the ram in your server, if you are running the server and client on the same computer
and run in the terminal (mac/linux) or command prompt(windows)
Code:
java -version
 

alexb75000

New Member
Jul 29, 2019
4
0
0
Please post your cpu model number, the ram in your server, if you are running the server and client on the same computer
and run in the terminal (mac/linux) or command prompt(windows)
Code:
java -version
i am running the server on the same computer i am playing on and i have half gb of ram in the server and im do not know what my cpu model number is, how would i find it?
 

glasspelican

New Member
Jul 29, 2019
187
0
0
the base ram you want for a modded server is 2 gig
you will want 4 gig or more to play smoothly with client and server on same computer

To find cpu model
assuming windows
start menu -> right click on computer -> properties

if you need mac instructions I will need to go turn it on

Sorry, but with that hardware I don't think there's anything I can do
Minecraft is vary memory intensive, especialy when you mod it
Glass
 

alexb75000

New Member
Jul 29, 2019
4
0
0
the base ram you want for a modded server is 2 gig
you will want 4 gig or more to play smoothly with client and server on same computer

To find cpu model
assuming windows
start menu -> right click on computer -> properties

if you need mac instructions I will need to go turn it on

Sorry, but with that hardware I don't think there's anything I can do
Minecraft is vary memory intensive, especialy when you mod it
Glass
how do i add more ram to the server because direwolf20's start bat you sturn the server on is weird. it looks like this.



java -Xms512M -Xmx1G -jar direwolf20.jar
 

glasspelican

New Member
Jul 29, 2019
187
0
0
-Xms controls the minimum amount of available ram dedicated to the server
-Xmx controls the Max ram the server can use

so you have
java //program to use to run the jar
-Xms512M // minimum ram for server 512 Meg
-Xmx1G // Max ram allowed for server to use 1 Gig
-jar direwolf20.jar // the executable file to launch

But those options wont help if the computer only has 1/2 of a gig of ram.
If all the ram gets used up the computer will try to use your hard-drive to fill in the gaps.