Upgraded server and still lagging

  • 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

solidmoose

New Member
Jul 29, 2019
27
0
0
As per the sticky to ask tech support I'll fill out the questions
  • What OS are you running?
    Ubuntu server 13.10 64 bit
  • Are you using minecraft hosting provider or a dedicated/local server not designed for minecraft?
    Dedicated server
  • What version of FTB are you using? (Dont just say latest tell us the version)
    Minecraft version 1.6.4 and Forge version 9.11.1.965
  • Did you add any mods to the server pack?
    Using dw20 1.6.4 pack with about 5 extra mods added. Dartcraft, Mekanism, chisel, carpenter blocks and a couple others.
  • What are your server specs?
    CPU: Intel Xeon E3 1245v2
    RAM: 32 GB
    2TB of storage
    200mbps bandwith
  • A good detailed paragraph about the problem
    So my friends and I have been playing on a server that I set up for us and for the past week we've been having an immense amount of lag when we were all online. At the time, we were using another dedicated server with a dual core i3 and 8GB ofRAM. We upgraded to the current server because we got some new players and more activity in general. At the moment we have 5-10 players playing at once. The problem is, after moving to this new server, the lag has gotten worse. The game becomes unplayable because everyone on the server is lagging so badly. I've run Opis and frequently check the tps on the server using /forge tps and the tps isnt anywhere near high enough to warrant this kind of lag. Here is a /forge tps I just took right now while I was writing this post.

    2014-03-22 23:23:37 [INFO] [Minecraft-Server] Dim 7 : Mean tick time: 3.647 ms. Mean TPS: 20.000
    2014-03-22 23:23:37 [INFO] [Minecraft-Server] Dim -31 : Mean tick time: 0.034 ms. Mean TPS: 20.000
    2014-03-22 23:23:37 [INFO] [Minecraft-Server] Dim -1 : Mean tick time: 2.316 ms. Mean TPS: 20.000
    2014-03-22 23:23:37 [INFO] [Minecraft-Server] Dim 0 : Mean tick time: 32.677 ms. Mean TPS: 20.000
    2014-03-22 23:23:37 [INFO] [Minecraft-Server] Overall : Mean tick time: 36.341 ms. Mean TPS: 20.000

    This was taken while players are online and going about their normal Minecraft lives. Even though the tps isn't anywhere near insane, the amount of lag on the server is very high. Another strange occurrence is that the server console is constantly being spammed by ic2 errors. Sometimes its just one, but other times its a hug wall of text in IC2 errors. Ill pastebin the wall of text here.

    pastebinned wall of text errors: http://pastebin.com/d78nMCFp

    Here is an example of one of the single line errors that show up on the console every few minutes

    2014-03-22 23:39:48 [WARNING] [IC2] EnergyNet.removeTileEntity: mekanism.common.tile.TileEntityLogisticalSorter@2aed0b68 (mekanism.common.tile.TileEntityLogisticalSorter@2aed0b68) wasn't found (added), skipping

    Apart from those two types of errors, the server is spitting out this message every few seconds
    2014-03-22 23:40:43 [WARNING] [Minecraft-Server] Can't keep up! Did the system time change, or is the server overloaded?

    I know this message is common and its generally not something to be alarmed by; especially with several moving players throughout the world, but I cant help but think it might be a problem when it's appearing every couple seconds, even after upgrading to this better server.

    I apologize for the wordy post, but I've tried to be as thorough as possible in hopes that it will help someone identify any issues that might be occurring. Thank you.
 

Harvest88

New Member
Jul 29, 2019
1,365
-1
0
I am guessing right off the get go it's your hard drive(s)since you said your storage is 2TB. Go and replace them with SSD(s) to run the OS+server then have a standard HDD for backing up only.
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
I am guessing right off the get go it's your hard drive(s)since you said your storage is 2TB. Go and replace them with SSD(s) to run the OS+server then have a standard HDD for backing up only.
I'm running 7 servers of dual HDDs with no lag, SSDs only speed up the processes of minecraft but won't hinder you if you go without. As for the TPS it is at 20.0 which means no server lag at all. Yet it says it can't keep up. Can post your forge logs? They may provide more info and you should. Turn off opis it will cause lag when running at regular intervals. I've even disabled the opis mod which helped a lot for monster and I'll turn it on only if I need it.
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
The problem with hard drives that they have very limited IOPs that they can output as discussed

Some small facts about HDD and SSD.
A HDD only has 75 up to 175 IOPs.
a SSD in that matter has from 8.400 up to 12.000.000 IOPs.

http://forum.feed-the-beast.com/threads/server-hardware-discussion-any-server-owner-must-read.6010/

If there isn't enough then there lag being caused by the bottlenecks from the hard drive.
The SSDs server hosts buy are not the TOP high end super SSDs that get up into the millions of MB/s as those. Cost thousands and sometimes tens of thousands of $$$$$$ the most common ones are mid grade and some even in low grade. Those hosts like RAMnode that are very trusted and have a high budget have a MAXimum of 800MB/s on a raid 10 array which is double the single or raid 1 array speeds so their SSDs get 400MB/s. I have several servers at ramnode and this Is tested and true. Now I have another server running raid 0 which HDDs which will double the read/write speed of a single drive and double the capacity. With those dual HDDs I get a range of 190MB/s to 340MB/s which is faster then some low grade SSDs sure it's not as steady because it has moving parts but it can out preform them and it will outlast them, mid and low grade SSDs have a MAX lifetime of 1-3 years these high end HDDS I have (most hosts have high end HDDS because they are super cheap) are able to last up to 5 or even 6 years if I'm careful.

Either way running 1 minecraft server on a HDD will cause no issues other then chunks taking a little longer to load at the most.
 

Harvest88

New Member
Jul 29, 2019
1,365
-1
0
Agreed, however RAID 0 is the the worst RAID you can do since it duplicate the data lost rate but it can works if you take good back up of the server regularly. Those DC SSDs you can find at OVH and etc are in fact crappy SSDs, however if your renting from a real dedicated host then I would expect them to have those good Intel/Samsung drives.
 

solidmoose

New Member
Jul 29, 2019
27
0
0
I'm running 7 servers of dual HDDs with no lag, SSDs only speed up the processes of minecraft but won't hinder you if you go without. As for the TPS it is at 20.0 which means no server lag at all. Yet it says it can't keep up. Can post your forge logs? They may provide more info and you should. Turn off opis it will cause lag when running at regular intervals. I've even disabled the opis mod which helped a lot for monster and I'll turn it on only if I need it.

I only run Opis when it's needed. I'm not constantly running it. Now that we've been on this new server about 12 hours, the tick rate is very low and I've tried using opis to identify any laggy chunks/tile entities and everything comes back normal. No abnormally high readings
2014-03-23 14:07:12 [INFO] [Minecraft-Server] Dim 7 : Mean tick time: 0.163 ms. Mean TPS: 20.000
2014-03-23 14:07:12 [INFO] [Minecraft-Server] Dim -31 : Mean tick time: 0.042 ms. Mean TPS: 20.000
2014-03-23 14:07:12 [INFO] [Minecraft-Server] Dim -1 : Mean tick time: 6.924 ms. Mean TPS: 20.000
2014-03-23 14:07:12 [INFO] [Minecraft-Server] Dim 0 : Mean tick time: 161.677 ms. Mean TPS: 6.185
2014-03-23 14:07:12 [INFO] [Minecraft-Server] Overall : Mean tick time: 177.060 ms. Mean TPS: 5.648

As for the forge logs, how would I get those to display to you? Thanks a lot for the help.
 

solidmoose

New Member
Jul 29, 2019
27
0
0
Excuse the double post, but I was wondering if some JVM arguments could be affecting the performance of the server. I mean, obviously they will change how the server performs, but could it really be this much difference? Previously, I was using the Server jvm from the post titled "JVM Arguments for Modded Minecraft". I was using this:
-Xms8192m -Xmx8192m -XX:permSize=256m -XX:NewRatio=3 -XX:SurvivorRatio=3 -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=8 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=50 -XX:MaxGCMinorPauseMillis=7 -XX:+ExplicitGCInvokesConcurrent -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:+BindGCTaskThreadsToCPUs -Xnoclassgc

We were experiencing heavy lag while using these JVM args so I had the idea to change them to maybe see if that was causing the lag. At the moment we're using the basic JVM arguments almost:
java -Xms8192m -Xmx8192m -XX:permSize=256m -jar FTBServer-1.6.4-965.jar nogui

We still experience heavy lag using these JVM arguments so it leads me to believe that this isn't the problem, but I don't really know.
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
Try disabling the mod opis, I've found it lags bad even if it says it isn't running, just see if it helps.[DOUBLEPOST=1395602758][/DOUBLEPOST]
Agreed, however RAID 0 is the the worst RAID you can do since it duplicate the data lost rate but it can works if you take good back up of the server regularly. Those DC SSDs you can find at OVH and etc are in fact crappy SSDs, however if your renting from a real dedicated host then I would expect them to have those good Intel/Samsung drives.
All brands intel Samsung have crappy SSDs they make for the "cheap". On my side note raid 0 isn't that bad, if the hard discs one or two started to fail it would give you warnings in advance and HDDS generally last longer then SDDs when used a lot as SSDs are not designed to constantly rewrite again and again. Though HDDS do have their limited as well it's much higher and if one does fail preventing boot it is fairly easy to recover all data though you would need a new drive.
 

solidmoose

New Member
Jul 29, 2019
27
0
0
I just disabled Opis and the lag persists. The thing is, when I start the server, the tps are at 20 like normal. But after a few minutes, the tps go down to 3 to 5. I disabled Opis and after a few minutes the tps were back down to 4.[DOUBLEPOST=1395604046][/DOUBLEPOST]
Ask DIM-0 is the one lagging the entire server so check out what people built there.
Since everyone is living in DIM-0, it's only normal that that dimension has the most lag, but I've checked everyone's houses and factories out and there's nothing even close to over the top. Just a few AE MACS and some thermal expansion machines.

on a side note: how would I go about pasting the forge logs here? How do I get them? Thanks
 

solidmoose

New Member
Jul 29, 2019
27
0
0
Does anyone have any suggestions for JVM arguments for my server? I know not all JVM arguments are created equal and they dont all work for all server, but taking into account the specs of my server that I mentioned above, could anyone show me what JVM arguments similar servers use? I'm totally lost in regards to JVM args. Thanks again
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
It's something in DIM-0 turn on opis you should be able to find it, or install worldguard and do /stoplag then /stoplag -c