TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
527 stars 354 forks source link

Towny causing high CPU usage #1641

Closed LlmDl closed 9 years ago

LlmDl commented 9 years ago

Originally reported on Google Code with ID 1615

What steps will reproduce the problem?
1. Use NoLagg Examine to find detect problems.
2. Monitored CPU usage with 0 players
3. Monitored CPU usage with 20 players

What is the expected output? : NoLagg Examine gave towny between 700-750ms, with BlockPhysicsEvent
using between 680-730ms.

What is your Towny version number? : Towny v0.82.1.8

What is your TownyChat version number? : Not installed.

What is your Bukkit version number? : CraftBukkit version git-Bukkit-1.4.7-R1.0-b2624jnks
(MC: 1.4.7)

What operating system? : CentOS 6 64-bit, out of a quick bet.

Please use pastebin.com to link the following files:

- Server.log doesn't seem to apply here. Plugin loads like it should.

Towny Config:
- http://pastebin.com/4ZuTwDvn

Towny Permissions:
- http://pastebin.com/XM1bx5B2

PermissionsEX File:
- A bit messy, but that shouldn't cause any lag related issues. Also, we have multiple
worlds (One for factions, one for towny), but certain plugins are disabled in certain
worlds.

http://pastebin.com/usfXBMy0

Reported by astroskillz on 2013-03-04 12:45:46

LlmDl commented 9 years ago
To add, the eximation file: http://files.enjin.com/295576/Server_exam/2013_03_04-5_23_41.exam
(This is on the enjin servers, shouldn't cause you any viruses or whatever. Use Nolagg.jar
to open).

Reported by astroskillz on 2013-03-04 12:48:14

LlmDl commented 9 years ago
I don't usually download .exam files. Can you pastebin.com the findings/the bukkit timings?

Reported by LlmDlio on 2013-03-05 15:44:02

LlmDl commented 9 years ago
You can't pastebin those files. I uploaded some images tho:

http://files.enjin.com/295576/img/Screen%20Shot%202013-03-05%20at%204.46.20%20PM.png

http://files.enjin.com/295576/img/Screen%20Shot%202013-03-05%20at%204.46.26%20PM.png

http://files.enjin.com/295576/img/Screen%20Shot%202013-03-05%20at%204.46.34%20PM.png

http://files.enjin.com/295576/img/Screen%20Shot%202013-03-05%20at%204.46.41%20PM.png

Reported by astroskillz on 2013-03-05 15:50:33

LlmDl commented 9 years ago
(And for the record, we don't use NoLagg. It was just to examine the server while I
turned all the NoLagg's features off)

Reported by astroskillz on 2013-03-05 15:51:27

LlmDl commented 9 years ago
All you need is the nolagg.jar on your desktop, start it and load the .exam file!
The file is encoded and is not readable by pastebin.com, but if you want it:
http://pastebin.com/FhtjU251

Reported by terminatorX120 on 2013-03-08 15:52:11

LlmDl commented 9 years ago
Alright, now Im sick of it. Its been 1.5 weeks without a response from the Towny team.
Thats rediculous. I want answers!

I just updated to 1.5 and my CPU is at 60% with no players online. Towny is using 5044ms
on my server (According to Nolagg Examine). Thats rediculous.

Reported by astroskillz on 2013-03-19 18:47:57

LlmDl commented 9 years ago
Show us the bukkit timings file. I trust that more than nolagg's examine.

Reported by LlmDlio on 2013-03-19 19:36:44

LlmDl commented 9 years ago
I'm also experiencing high CPU usage with Towny. I ran a plugin check using the builtin
"/timings merged" command and found that Towny had over twice the execution time of
any other plugin installed. It's using almost 3 times the processing power as WorldGuard
with over 50 regions.

Also noticed that the Towny MySQL storage seems to be somewhat inefficient, and that
my the TOWNY_TOWNBLOCKS table is incredibly overgrown. Not sure if that may be the
issue?

Reported by rlminecraft on 2013-04-06 20:22:59

LlmDl commented 9 years ago
Here's a link to the pastebin of my timings file. I have moved the Towny portion to
the top to make it easier to find.

http://pastebin.com/UgqEnPt6

Reported by rlminecraft on 2013-04-06 20:33:12

LlmDl commented 9 years ago
re: mysql, there's no reason to use it unless you've made a webgui for towny. it is
no slower/faster than flatfile.

Also please update to 0.82.1.11, it includes a change that will decrease the BlockPhysicsEvent
which was showing a large footprint (even though it was not doing anything if you have
the reverts turned off.)

If you could show us the timings after you update that would be great.

Reported by LlmDlio on 2013-04-07 00:55:00

LlmDl commented 9 years ago
Those timings look absolutely fine.

Reported by ElgarL@palmergames.com on 2013-04-15 12:03:00

LlmDl commented 9 years ago

Reported by LlmDlio on 2013-05-13 14:40:25