TrainCarts icon indicating copy to clipboard operation
TrainCarts copied to clipboard

Painfully long load times

Open David1544 opened this issue 11 years ago • 13 comments

Hello, I was starting up my server and I noticed that the load time for train carts was around 110 seconds, and it was only loading ~60 trains. (Or rather, minecarts placed down by users that get registered by trains). Is there a way to improve this? I can provide server specs/plugins list if needed.

David1544 avatar Mar 01 '14 01:03 David1544

We have the same problem. Are you using Multiverse? We are suspecting some startup delay problems to be caused by Multiverse, as in certain situations, also that plugin hangs up for minutes when loading portals.

Etsija avatar Mar 03 '14 07:03 Etsija

I am using multiverse, the latest Dev build. I noticed that this started happening after I updated it a month or so ago. I could try using an older build or an alternate multi-world plugin.

David1544 avatar Mar 03 '14 10:03 David1544

It would be valuable to us if you could let me know what helps :)

Etsija avatar Mar 03 '14 10:03 Etsija

It should be noted that I am on the latest Train Carts dev build Also, I am using Creative Gates instead of Multiverse Portals, except for nether portals, for those I am using Multiverse Nether Portals.

-Downgraded to Multiverse build 675 - Around the same load time.

-Downgraded to Train Carts build 39 - Load time still very long.

-Downgraded to Multiverse build 670 - Load Time persists.

-Downgraded to Train Carts build 35 - Runs into an error 3:34:51 AM CONSOLE: ERROR]: [Train Carts] An error occurred while enabling, the plugin will be disabled: 3:34:51 AM CONSOLE: ERROR]: [Train Carts] Field is missing from a dependency of this plugin 3:34:51 AM CONSOLE: ERROR]: [Train Carts] Please, check for an updated version of Train Carts, BKCommonLib, MinecartManiaCore, SignLink and My Worlds before reporting this bug! 3:34:51 AM CONSOLE: ERROR]: java.lang.NoSuchFieldError: PLAYER_INPUT 3:34:51 AM CONSOLE: ERROR]: at com.bergerkiller.bukkit.tc.TrainCarts.enable(TrainCarts.java:418) 3:34:51 AM CONSOLE: ERROR]: at com.bergerkiller.bukkit.common.PluginBase.onEnable(PluginBase.java:753) 3:34:51 AM CONSOLE: ERROR]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) 3:34:51 AM CONSOLE: ERROR]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) 3:34:51 AM CONSOLE: ERROR]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:385) 3:34:51 AM CONSOLE: ERROR]: at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:303) 3:34:52 AM CONSOLE: ERROR]: at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:285) 3:34:52 AM CONSOLE: ERROR]: at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:347) 3:34:52 AM CONSOLE: ERROR]: at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:324) 3:34:52 AM CONSOLE: ERROR]: at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:280) 3:34:52 AM CONSOLE: ERROR]: at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:186) 3:34:52 AM CONSOLE: ERROR]: at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:436) 3:34:52 AM CONSOLE: ERROR]: at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) 3:34:52 AM Train: Carts] Disabling Train Carts v1.73.0 3:34:52 AM CONSOLE: [INFO] Train Carts disabled!

I'll go ahead and boot up BukkitGUI on my local machine and run some testing with just multiverse and Traincarts, no other plugins.

David1544 avatar Mar 03 '14 11:03 David1544

Alright, I ran a local server with just TrainCarts build 49, Multiverse build 687, and Multiverse Nether Portals build 681, start time is nearly instant for TrainCarts (0.312s). Here's a plugin list for the server that is having the long load times.

Plugins (41): TimTheEnchanter, Slap, WorldEdit, BukkitCompat, VoxelSniper, Greentext, MinecraftMarket, mcore, Vault, Multiverse-Core, PermissionsEx, LWC, Prism, WorldGuard, DispenserRefill, dynmap, ChestRestock, ScheduledAnnouncer2, Modifyworld, ProtocolLib, PlayerSkulls, mcMMO, Essentials, Citizens, WorldBorder, EssentialsProtect, Towny, EssentialsSpawn, CreativeGates, Multiverse-NetherPortals, uCars, Sentry, CraftBook, BKCommonLib, EssentialsChat, Dynmap-Towny, MobArena, HyperConomy, ShowCaseStandalone, HyperMerchant, Train Carts

All of which are the latest dev builds (as of Feb. 28th)

David1544 avatar Mar 03 '14 11:03 David1544

Out of your plugins, we use:

WorldEdit, Vault, Multiverse-Core, PEX, WorldGuard, dynmap, Modifyworld, ProtocolLib, Essentials, Citizens, WorldBorder, EssentialsSpawn, Multiverse-NetherPortals, Sentry, CraftBook, BKCommonLib, HyperConomy and Train Carts.

So it's boind to be one of those. Easy job, eh? ;)

Etsija avatar Mar 03 '14 18:03 Etsija

That's odd, I am unable to replicate our problem with your plugin set or my plugin set. Maybe it has to do with the number of minecarts being loaded?

David1544 avatar Mar 03 '14 19:03 David1544

Look at the log and see at what message it is stuck at.

Fi it IS TC i am willing to do some debugging on it.

lenis0012 avatar Mar 03 '14 22:03 lenis0012

Didn't see much in the terms of debug, but this is the output from console at startup. [18:59:42] [Server thread/INFO]: [Train Carts] Loading Train Carts v1.73.1-SNAPSHOT Some other plugins load [19:01:08] [Server thread/INFO]: [Train Carts] Enabling Train Carts v1.73.1-SNAPSHOT [19:03:00] [Server thread/INFO]: [Train Carts] 47 Trains have been loaded in 7 worlds. (52 Minecarts) [19:03:00] [Server thread/INFO]: [Train Carts] 0 detector rail regions loaded covering 0 blocks [19:03:00] [Server thread/INFO]: [Train Carts] Restoring trains and loading nearby chunks... [19:03:00] [Server thread/INFO]: Train Carts version 1.73.1-SNAPSHOT enabled! (112.363s) I also did a clean install of the plugin and nothing was changed.

David1544 avatar Mar 04 '14 00:03 David1544

Any update? Or is it a problem with our servers?

David1544 avatar Mar 14 '14 23:03 David1544

@David1544 Had no time to look yet, need to recode 2 big plugins first.

lenis0012 avatar Mar 15 '14 00:03 lenis0012

No problem, take your time.

David1544 avatar Mar 15 '14 00:03 David1544

Hey, wanted to post something about this. I moved hosts and for some reason the load times are back to under a second. This is weird because the new host is on SSDs but when I tested it on my 7200rpm drive at home I had no problem, so I don't think it's a disk issue. Could it at all be processor bound because the old host had a crummy phenom quad core, and my desktop has a FX8350 and the new server has an E3-1245v2, and the latter two had no problems.

David1544 avatar May 12 '14 04:05 David1544