Solved FTB Default Server Lag (Quick Q's)

  • 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

T-Rex

New Member
Jul 29, 2019
6
0
0
Hi all,

Have setup a new server on a VM at a regional data centre that a friend owns. However theres some major lag on the server causing players to not want to play and I thought I need some guidance on it being a setup/hardware/network issue.
  • What OS are you running?
Windows 2008 R2 (64bit)
  • Are you using minecraft hosting provider or a dedicated/local server not designed for minecraft?
Dedicated VM (Hardware scales under demand too!)
  • What version of FTB are you using? (Don't just say latest tell us the version)
Minecraft server version 1.5.2 (unsure how to confirm the FTB version?)
  • Did you add any mods to the server pack?
Not that i'm aware of, it's got everything enabled though.
  • What are your server specs?
Intel Xeon E5-2620 (@2.00Ghz)
16GB RAM
1TB SATA (Seagate)
10GB Up/Down internet
Note: is not dedicated, is scalable VM.
  • A good detailed paragraph about the problem
Basically when users join it will play good for 5-10 minutes then starts to get a bit laggy, as in players teleporting (rubber banding) around, breaking blocks without sound then the blocks show up again.
This server IS running 5 other gmod based dedi servers, but I have run FTB with these turned off and same issue applies.
I believe the issue might be the CPU, it's obviously unable to used effectively due to limitations in Java but other then that what could it possibly be? Vanilla MC and Tekkit servers run like a dream with 20 people on them, FTB however...
Here is my startup:
Code:
java -Xincgc -Xmx4096M -XX:PermSize=128m -jar ftbserver.jar
and I tried this from a site online I found:
Code:
java -server -Xincgc -Xmx4G -Xms2G -Xmn1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:MaxPermSize=128M -XX:+DisableExplicitGC -Xnoclassgc -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -XX:+UseLargePages -XX:ReservedCodeCacheSize=1G -cp ftbserver.jar -jar ftbserver.jar
Can anyone offer some ideas or changes I can try? Is the hardware sufficient to run a simple 20-30 slot server?
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
Try with server arguments I have listed in my tech support post. The link is in my signature.
 

T-Rex

New Member
Jul 29, 2019
6
0
0
Thanks Eyamaz,

I will give it a go, just a question, is that to add in as is for the FTB argument, do I still need to max/min RAM settings and the -jar lines etc?
 

T-Rex

New Member
Jul 29, 2019
6
0
0
Ok gave it a go, but got these errors:

ds4BY84.jpg
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
Those are the FTB Launcher arguments. The server arguments are the third set.
 

T-Rex

New Member
Jul 29, 2019
6
0
0
Ahhh that makes sense!

Well tried it, seems to of fixed the issue, thanks so much!

You might want to update your arguments page to ensure it has -java -server at the beginning (if it's needed) because lots of people will take your code as it is and it won't launch (have not tried myself without these two bits at the start)

Cheers
 
  • Like
Reactions: Eyamaz

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
-server is not needed as this tells the JVM to run in server mode. If your running the 64 bit java 7, it defaults to doing this.

I may add the java at the begining though. JIC.