Stargate lag on load/save

Stargate Support and Discussion
netherfoam
 
Posts: 6
Joined: April 1st, 2013, 2:51 pm

Stargate lag on load/save

Postby netherfoam » April 1st, 2013, 2:59 pm

Hi,

I'm having some lag that seems to be caused by Stargate, and I'm wondering if you can do something about it. Currently, stargate is very slow to start (~a minute to load) and I consistently get this stacktrace:

http://privatepaste.com/9e5828c7a8

Any help would be appreciated!

We have 10 *.gate files loaded, and 232kb of *.db files (Spread across 7 worlds) on a quad core 8GB RAM machine. Though the machines spec's here are definitely not the issue.

Running Spigot with NoLagg & BKCommonLib, Stargate v0.7.9.10

Cheers.

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: Stargate lag on load/save

Postby Drakia » April 1st, 2013, 6:15 pm

Jebus, that's crazy. There's nothing within Stargate itself that should cause that kind of load time. Could you try removing NoLagg/BKCommonLib, and see if the startup time is the same?

It looks like there's an issue when loading chunks (That stack trace is showing that file access is lagging out). What kind of drive are you running on? At startup, Stargate verifies that all gates still exist, so it has to load all chunks containing gates, if you have a very slow drive I guess it may cause this kind of behaviour.

netherfoam
 
Posts: 6
Joined: April 1st, 2013, 2:51 pm

Re: Stargate lag on load/save

Postby netherfoam » April 4th, 2013, 11:28 am

So I tested out the harddrive, it was at least 60MB/s (Obviously less in reality, but that should do...)

I'm yet to remove NoLagg or BKCommonLib (Why NoLagg?), but I will try to soon! (I understand a few plugins use BKCommon... I thought yours was one of them? Apparently not)


Does anyone else use spigot fine with this? I know it has some altered chunk loading mechanics (Mostly for Async stuff loads)

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: Stargate lag on load/save

Postby Drakia » April 4th, 2013, 11:35 am

netherfoam wrote:So I tested out the harddrive, it was at least 60MB/s (Obviously less in reality, but that should do...)

I'm yet to remove NoLagg or BKCommonLib (Why NoLagg?), but I will try to soon! (I understand a few plugins use BKCommon... I thought yours was one of them? Apparently not)


Does anyone else use spigot fine with this? I know it has some altered chunk loading mechanics (Mostly for Async stuff loads)

NoLagg because then we can tell if its a Stargate + spigot issue without other plugins that may interfere with things. I lack a test env with that large of a db, so I can't try it out locally.

netherfoam
 
Posts: 6
Joined: April 1st, 2013, 2:51 pm

Re: Stargate lag on load/save

Postby netherfoam » April 5th, 2013, 7:24 am

I'm setting up a test server running Stargate and Multiverse now, just waiting for the worlds to copy over (~10GB of world)

netherfoam
 
Posts: 6
Joined: April 1st, 2013, 2:51 pm

Re: Stargate lag on load/save

Postby netherfoam » April 5th, 2013, 9:04 am

16:01:41 [INFO] [Multiverse-Core] Version 2.5-b656 (API v18) Enabled - By Rigby, fernferret, lithium3141 and main--
16:01:41 [INFO] [Stargate] Enabling Stargate v0.7.9.10
16:01:41 [INFO] Stargate v.0.7.9.10 is enabled.
16:01:41 [INFO] [Stargate] Loaded 10 gate layouts
16:01:51 [INFO] [Stargate] Sign on line 242 doesn't exist. BlockType = AIR
16:01:54 [INFO] [Stargate] {challenge_9} Loaded 242 stargates with 34 set as always-on
16:01:54 [INFO] [Stargate] {challenge_9_nether} Loaded 21 stargates with 34 set as always-on
16:01:55 [INFO] [Stargate] {challenge_9_the_end} Loaded 1 stargates with 36 set as always-on
16:02:36 [INFO] [Stargate] {challenge_8} Loaded 1173 stargates with 67 set as always-on
16:02:36 [INFO] [Stargate] {challenge_8_the_end} Loaded 2 stargates with 67 set as always-on
16:02:37 [INFO] [Stargate] {challenge_8_nether} Loaded 109 stargates with 68 set as always-on
16:02:37 [INFO] [Stargate] Plugin metrics enabled.
16:02:37 [INFO] [PermissionsEx] Enabling PermissionsEx v1.19.5

Plugins (4): Multiverse-Core, Stargate, PermissionsEx, Multiverse-Inventories

netherfoam
 
Posts: 6
Joined: April 1st, 2013, 2:51 pm

Re: Stargate lag on load/save

Postby netherfoam » April 5th, 2013, 9:05 am

Interesting... After doing a 'warm' startup:

16:04:18 [INFO] [Multiverse-Core] Version 2.5-b656 (API v18) Enabled - By Rigby, fernferret, lithium3141 and main--
16:04:18 [INFO] [Stargate] Enabling Stargate v0.7.9.10
16:04:18 [INFO] Stargate v.0.7.9.10 is enabled.
16:04:18 [INFO] [Stargate] Loaded 10 gate layouts
16:04:19 [INFO] [Stargate] Sign on line 242 doesn't exist. BlockType = AIR
16:04:19 [INFO] [Stargate] {challenge_9} Loaded 242 stargates with 34 set as always-on
16:04:19 [INFO] [Stargate] {challenge_9_nether} Loaded 21 stargates with 34 set as always-on
16:04:19 [INFO] [Stargate] {challenge_9_the_end} Loaded 1 stargates with 36 set as always-on
16:04:22 [INFO] [Stargate] {challenge_8} Loaded 1173 stargates with 67 set as always-on
16:04:22 [INFO] [Stargate] {challenge_8_the_end} Loaded 2 stargates with 67 set as always-on
16:04:22 [INFO] [Stargate] {challenge_8_nether} Loaded 109 stargates with 68 set as always-on
16:04:22 [INFO] [Stargate] Plugin metrics enabled.

Drakia
Site Admin
 
Posts: 553
Joined: October 26th, 2011, 8:20 pm

Re: Stargate lag on load/save

Postby Drakia » April 5th, 2013, 9:40 am

Wow... I don't think I've ever seen a server with 1500 Stargates before, I'm impressed :)

I'll look into a way to speed up loading. I'm thinking of adding an option to disable the "checks" done on startup (Which would then not load every chunk containing a gate), this would drastically improve performance on startup, and barring world corruption shouldn't lead to issues with phantom gates.


Return to Stargate

Who is online

Users browsing this forum: No registered users