Minecraft Server Lag

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Recolance
New to forums
New to forums
Posts: 6
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Jul 17, 2012 12:53 pm

Minecraft Server Lag

Post by Recolance »

I have an issue with server lag, The lag iconsistant regardless of the amount of players online. Lags the same amount with 100 players online as it does 30 players online. It is server lag that causes about 20,000ms latency every 2 minutes or so.
Server Specs
•Intel Xeon E5-1660 processor (six physical 3.3ghz cores + hyperthreading + turbo->3.9ghz)
•128 GB registered DDR3 ECC memory
•240 GB Intel SSD
•7500 GB of bandwidth
•1Gigabit uplink speed


Picture of the performance and console 'lost connection' spam following a lag spike.
You can see the spike on the CPU Maximum Frequency blue line to the right

Image

-I'm running the following plugins
*AntiCheat
*AutoAnnouncer
*ButtonWarp
*Buycraft
*CasinoSlots
*Catacombs
*ChestShop
*CreativeControl
*DeathControl
*Essentials, Essentials Spawn, Essentials Chat, Essentials Protect
*Factions
*GroupManager
*LaggClear
*mcMMO
*MobArena
*MobDisguise
*Multiverse-Core
*PartyHat
*ServerSigns
*ShowcaseStandalone
*SilkSpawners
*SimpleSpleef
*STAB (Stop Talking Auto Ban)
*Sunsteel
*Survival Games
*TopPvP
*Votifier
*War
*WorldEdit
*WorldGuard

I have 5 worlds in total running including the nether
s

If someone could please help me pin point the problem or can give me pointers on where I can look to get some information on improving this. Please help
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Minecraft Server Lag

Post by Edge100x »

If it's a regular spike that is causing the disconnections, that suggests that you might have a plugin performing some scheduled operation. Is one doing a backup or anything similar?
Recolance
New to forums
New to forums
Posts: 6
Joined: Tue Jul 17, 2012 12:53 pm

Re: Minecraft Server Lag

Post by Recolance »

No plugins perform backups, and the only plugin that performs any sort of time based operation is Essentials / GroupManager that autosave the server every 10min or so. But that is built into the plugin and is not configurable. I do not have a mySQL database setup for any of my plugins that log information such as CreativeControl or SurvivalGames. They have a built in database that use memory and then store information to the disc.

Which is why I am completely baffeled by the type of server performance I am experiancing. The CPU isn't bad at all, I have more than enough RAM for memory intensive operations such as SurvivalGames that does not write to a database, and the network speed is fanominal.

They type of bukkit I am running is CraftBukkit++ 1.2.5 R-4.0 and I see no difference using CraftBukkit++ over standard Bukkit.

I'm just confused.
fackstah
A semi-regular
A semi-regular
Posts: 18
Joined: Mon Jul 09, 2012 11:48 pm
Location: Canada
Contact:

Re: Minecraft Server Lag

Post by fackstah »

have you tried removing the large plugins your server is running 1 by 1 to see if the preformance improves and possibly isolate if it is one of the plugins causing this issue ?
What is Fackstah ?
I used to work for acclaim games on 2moons then i opened fussion-networks.com we had over 28 thousand players on our dekaron servers in its prime i create Games in Unity on my spare time
http://fussion-networks.com/desolate/
User avatar
Vanderburg
Former staff
Former staff
Posts: 1253
Joined: Sat Nov 13, 2010 7:27 am
Location: Dallas, TX

Re: Minecraft Server Lag

Post by Vanderburg »

Minecraft automatically saves periodically itself and I don't remember Essentials ever doing it, but you could certainly test to see if it's a contributing factor by using /save-all. I am highly skeptical that this would be it, though, as since 1.8, Minecraft had moved saves to a different thread, taking a great deal of load off the server.

The most common problem with Minecraft is hand down, plugins. It's always an excellent diagnostic step to first switch back to the Vanilla jar, then try Bukkit without any plugins, then try with your plugins. If everything is good, you can switch to CraftBukkit++ without plugins, then enable those. If at any point, enabling plugins causes the lag you experienced, then you'll need to get your hands a bit dirty and enable them one by one until you find it.

Also, another place to start is your server.log file, checking for [SEVERE] errors. Minecraft is excellent about logging and if you see them, it'll tell you which plugin is generating them and sometimes, why.
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Minecraft Server Lag

Post by .=QUACK=.Major.Pain »

On the minecraft forums, it was found that this is common with Minecraft servers run on VDS.
Something to do with CPU's on VDS, compared to a minecradt server on a shared dedicated server.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Minecraft Server Lag

Post by Edge100x »

Pain, he is on a dedicated machine and not a VDS. We do not offer VDSes with 128 GB of RAM :).

I have not heard complaints from those running Minecraft on VDSes here, either, so it's also likely that what you're saying does not apply to our VDS offerings, which are geared strictly for performance. Many other providers use OpenVZ and highly overload their machines (which is easy to do with OpenVZ), and many do not use SSDs; these can lead to major performance problems.

Recolance, to clarify on your performance monitor data, the maximum frequency is being raised because Windows recognizes that your application needs to stretch its legs a bit. It does this very early on when the "Performance" governor is set. When you're at 100% maximum frequency, that is not the same as 100% CPU usage (or anything close!). You should pay attention to the (per-process) CPU usage and not the frequency number.

How many players are in this server?
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Minecraft Server Lag

Post by .=QUACK=.Major.Pain »

Your correct. OpenVZ was mentioned.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Recolance
New to forums
New to forums
Posts: 6
Joined: Tue Jul 17, 2012 12:53 pm

Re: Minecraft Server Lag

Post by Recolance »

I know running Linux also takes a big off the CPU since it takes a lot more to run the operating system when using Windows.

But I have removed the plugins and tested them one by one. It does in fact run fine vanilla so I think it may be plugin related but I do need to find theplugin issue.

Here is something I think will fix it. I do not have a MySQL database running to log information from Essentials, SurvivalGames, Creative Control and othe plugins. I also know information that uses a premade database inside of the file normally gets stored at memory and when things are stored as memory the CPU needs to figure out what to do with it first, adding usage, also with the amount of RAm that I have and the uplink speed that I am currently running on. The only conclusion that I can come up with is the CPU and the speed of the HDD but that normally isn't an issue.
-If I was to setup a MySQL database for the information of memory intensive plugins to send data to would that take stress off of the CPU and help the server run? Getting some webstorage only costs like 3 bucks and isn't a big deal.
Recolance
New to forums
New to forums
Posts: 6
Joined: Tue Jul 17, 2012 12:53 pm

Re: Minecraft Server Lag

Post by Recolance »

Because with 70-100 players online at a time during the daytime those memory intensive plugins, such as Essentials, and SurvivalGames are consistantly working all of the time. I really think setting up a database will help but I'd want to confirm the fact that a databse would take stress off of the CPU
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Minecraft Server Lag

Post by Edge100x »

Yes, setting up a local MySQL database might take some load off of your plugins. I strongly recommend using a MySQL setup on your machine instead of on our shared webhosting, because our webhosting is run out of Seattle and plugins often do not like the additional latency in queries that comes from the distance between other locations and Seattle.
rustydusty1717
This is my homepage
This is my homepage
Posts: 642
Joined: Sun Sep 20, 2009 6:15 pm

Re: Minecraft Server Lag

Post by rustydusty1717 »

That machine not virtualized!?!?! That is rather depressing for me to see. Our main machine is rocking dual X5675's and 160GB ram, 1.5TB iscsi SAN and 500GB internal 15k scsi drives. Using such a machine with just a single OS almost seems like a waste :(
Image
Recolance
New to forums
New to forums
Posts: 6
Joined: Tue Jul 17, 2012 12:53 pm

Re: Minecraft Server Lag

Post by Recolance »

I actually don't know how to set up a MySQL database on my own. Anyone have a webpage with a tutorial on how to get one up and running. I've done them through webhosting but I haven't on my own machine.
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Minecraft Server Lag

Post by .=QUACK=.Major.Pain »

Install WAMP on your server and set it up with that.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Recolance
New to forums
New to forums
Posts: 6
Joined: Tue Jul 17, 2012 12:53 pm

Re: Minecraft Server Lag

Post by Recolance »

Other than the MySQL database, what do you think would be the issue and a way to fix it? A faster processor? My current one has 6 cores, and obviously with bukkit and its plugins only running two cores at max and the database running another. The other three would be literally sitting there doing virtually nothing. I was thinking for getting a 4 core processor running 3.6GHz or more with 64GB RAM in the price range of 300-350 bucks a month. I know NFO offers a 3.4, 4 core machine and thats .1 more than my current one but .1GHz is not too much of a differance at all.
Post Reply