Lag Issues

  • 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

cuteasamutton

New Member
Jul 29, 2019
2
0
0
My problem may be a broad and or complicated one but nevertheless, it plagues me, resisting all attempt at resolution.

I am running a feed the beast Monster Modpack server from my computer. From everything I can gather, I should not be experiencing lag issues. Here are my computer specs:

ram: 32 gb ram (4 x 8gb sticks, ddr3)
gpu: amd radeon 7850
processor: 8 core, 3.5 ghz
internet: 56 mb/s down, 11 mb/s up obtained from (http://www.speedtest.net/)

It is also important to note that I also experienced the same lag issues when attempting to run a direwolf20 server for 1.6.4, an ftb ultimate, and ftb unleashed. I finally broke down and paid for creeperhost to host for me. But I'm done paying. Why can't I run a server without lag when all of my ram, processing power, and bandwidth are far beyond what I pay for at creeperhost?

It may also be important to note that the lag is very sporadic, it will run fine for a couple minutes, then it will spike suddenly. Just enough for a creeper to troll the heck out of you.

Also, this lag is just with me on the server, no one else.

Random other items that may help an onlooker understand the situation:

-The computer is only a couple months old and runs perfectly fine in all areas but server hosting.
-I run ftb with 8gb of ram dedicated
-I run the server with 8gb of ram dedicated (as noted in the .bat file.)

Any help is MUCH appreciated.
 

cuteasamutton

New Member
Jul 29, 2019
2
0
0
Thanks for the reply! Do you think if I just ran the server from my computer and played on another computer it should run fine?
 

kittle

New Member
Jul 29, 2019
229
0
0
Your PC is plenty powerful enough to run both client and server. I have slightly less power on my pc (6 cores, 3.2ghz, 12gb ram) and i can run MULTIPLE servers with no lag - and connect to them.

If you are running your client and server on the same PC, then your internet connection (should) have nothing to do with it.

However, giving your client 8GB of ram is probably causing your lag spikes when java runs its garbage collection. The more ram, the longer it will take to run the garbage collection cycle, and the longer your game will "freeze" while the cycle is running.
Try running your client with the default of 2GB.
Take out optifine (its borked anyway).
(temporarily)Remove any extra JVM parameters from the launcher.

The same goes for server memory. too much ram and it will take a long time to run garbage collection, and the server will seem to freeze up. To start with -- set the server ram to 2GB.
Next, watch your server console to see if it is complaining about "cant keep up". Check to see what it says with nobody logged in (right after starting). Then wait a few mins to see if it starts doing anythhing (again with nobody logged in).

At the same time, check the windows task manager to see if something else is running and using up resources.