Help with performance

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • 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

Cosmology27

New Member
Jul 29, 2019
297
0
1
So I realize this is a vague question, but I'm just wondering if there's some way some of you might be able to help me out. I'm getting lag, and I'd like to know why, and possibly how to fix it.

I run a small server, only ever one or two of us on, max is three or four. Right now I'm the only one on, and I'm experiencing lag. My internet is quite fast, and no one else is on it right now. The only thing my server computer is doing is running the server, and the only thing my playing computer is doing is playing MC, and it has Steam open (but not doing anything). I've just done a full computer restart for both computers, and I've done this many times, and the lag remains.
I have a private modpack made, and much of the world is already loaded (so there aren't chunks being loaded). We'll have times where it will run great and smooth, and then we'll just hit a wall, and we won't be able to play comfortably at all. My mod list isn't bad at all, it's only 111mb big,

The server computer is a Mac OS 10.7.3, with a 2.4 GHz Intel Core i5, and 10gb memory, 1333 MHz DDR3.
The computer I'm playing on is Windows 8.1, Intel Core i7-4500 CPU @ 1.80GHz, 2.40GHz, with 8ghb memory.

Here's a mod list. http://pastebin.com/MSZ5FWxv

Here's my current internet speed that I just checked.
Ping = 14ms
Download speed = 31mbs
Upload speed = 10mbs

Here's my server command.
#!/bin/bash
cd "$(dirname "$0")"
exec java -Xms4G -Xmx8G -XX:permSize=512m -jar forge-1.7.10-10.13.3.1403-1.7.10-universal.jar nogui


I'm assuming there is some problem with a mod or something, and that every now and then this mod will try and do something, which will cause lag. That's the only way I can make sense of this, but I have no idea what could be causing this. Is there anyone out there that might be able to provide an answer for me here? I can usually figure out what's wrong, but I don't even know where to begin this time.

Thanks!
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
What is the tps of your server when it lags?
What is the used memory of the server when it lags?
Is it server lag at all?
Do you notice anything in the console of either the client or the server when it lags?
 

ChemE

New Member
Jul 29, 2019
371
0
0
I would very highly recommend adding Opis (Mobius Core also needed) to your mod list and using it to help track down any culprits. In my experience it is either a mod going rogue and do far too many updates (Flaxbeard) or too many entities which dominate tick time compared to bases.
 

ShneekeyTheLost

Too Much Free Time
Dec 8, 2012
3,728
3,004
333
Lost as always
I would second the suggestion of OPIS, being an amazing benchamrking utility as well as building in some optimization techniques.

Also, what version of Java are you using? If you are still using Java 7... try updating to Java 8. Now that it is fully supported, you're almost certainly going to have better memory handling with it than with the previous version.
 

tedyhere

New Member
Jul 29, 2019
1,286
0
0
Troubleshooting server issues is an art. First you need to find out WHAT kind of lag you are having.. TPS? Internet? Framerate? Is it caused by Entities? Tile Entities? Rogue mods eating RAM? Is it a general low amount of RAM? You NEED OPIS to figure this stuff out. Install it and MobiusCore on your server and your client. Run the opis start command and a new window will appear, there you can profile the server and it will tell you WHAT kind of lag you are having and what is causing it. You can even teleport directly to the problem to fix it using the mapwriter mod that comes with OPIS.

Learn it, love it, use it.
 

Hambeau

Over-Achiever
Jul 24, 2013
2,598
1,531
213
Is your setup all local... Are your server and client in the same room connected by a cable and switch/router? This is the fastest possible connection you can have, particularly if both PCs and the router support Gigabit Ethernet and you use CAT-6e cables. Even if one or both connections are 100MB this is still fast.

I do not include Wi-Fi as a reliable fast connection because too many things like wireless phones, microwaves, cell-phones in fringe areas and even the plethora of Wi-Fi routers your neighbors have configured to use the same channel you do can interfere with the radio signal and cause burst errors.

If your server is in another location? If so you will want to use tracert (Windows) or probably traceroute (Mac) to see how many ISPs lie on your connection path, as well as the total number of routers. Each router adds a bit of latency as it is, and if one is having an issue it can mess things up. Also, both ends can be on fast ISPs, say 1GB fiber, but if there's a third ISP between them running at 100MB it'll slow you down.

Of course, This all supposes that both client and server are optimized as stated in the posts above.
 

trinityamc

New Member
Jul 29, 2019
286
0
0
So I realize this is a vague question, but I'm just wondering if there's some way some of you might be able to help me out. I'm getting lag, and I'd like to know why, and possibly how to fix it.

I run a small server, only ever one or two of us on, max is three or four. Right now I'm the only one on, and I'm experiencing lag. My internet is quite fast, and no one else is on it right now. The only thing my server computer is doing is running the server, and the only thing my playing computer is doing is playing MC, and it has Steam open (but not doing anything). I've just done a full computer restart for both computers, and I've done this many times, and the lag remains.
I have a private modpack made, and much of the world is already loaded (so there aren't chunks being loaded). We'll have times where it will run great and smooth, and then we'll just hit a wall, and we won't be able to play comfortably at all. My mod list isn't bad at all, it's only 111mb big,

The server computer is a Mac OS 10.7.3, with a 2.4 GHz Intel Core i5, and 10gb memory, 1333 MHz DDR3.
The computer I'm playing on is Windows 8.1, Intel Core i7-4500 CPU @ 1.80GHz, 2.40GHz, with 8ghb memory.

Here's a mod list. http://pastebin.com/MSZ5FWxv

Here's my current internet speed that I just checked.
Ping = 14ms
Download speed = 31mbs
Upload speed = 10mbs

Here's my server command.
#!/bin/bash
cd "$(dirname "$0")"
exec java -Xms4G -Xmx8G -XXermSize=512m -jar forge-1.7.10-10.13.3.1403-1.7.10-universal.jar nogui


I'm assuming there is some problem with a mod or something, and that every now and then this mod will try and do something, which will cause lag. That's the only way I can make sense of this, but I have no idea what could be causing this. Is there anyone out there that might be able to provide an answer for me here? I can usually figure out what's wrong, but I don't even know where to begin this time.

Thanks!
Get fastcraft for Client and Server a thing you should Try
And I remember a Bug in a mod causing the nether to be flooded with wither skeletons but Dont know
If its that Try the /cofh tps command and Check

Gesendet von meinem D6603 mit Tapatalk
 

MigukNamja

New Member
Jul 29, 2019
2,202
0
0
Besides Opis, open a 'Terminal' session on your server (Mac) and let 'top' and press the '1' key to change to per-core view. Let it run while you play the game. Make sure you have enough free CPU and RAM. The i5 is a 4-core proc, but Minecraft is mostly single-threaded / single process. The operating system may bounce the process between cores. So, it might not always be on the same core, but watch to make sure the server isn't using 100% or close to 100% of the CPU.

Also, what disk do you have ? And, does the game lag when people are exploring ?

Game is *guaranteed* to lag if someone is exploring (new chunks are generating) and you have a spinning disk.