MrNaikito / towny

Automatically exported from code.google.com/p/towny
0 stars 1 forks source link

Towny causing high CPU usage #1615

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by astroski...@gmail.com on 4 Mar 2013 at 12:45

GoogleCodeExporter 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).

Original comment by astroski...@gmail.com on 4 Mar 2013 at 12:48

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

Original comment by LlmD...@gmail.com on 5 Mar 2013 at 3:44

GoogleCodeExporter 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

Original comment by astroski...@gmail.com on 5 Mar 2013 at 3:50

GoogleCodeExporter 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)

Original comment by astroski...@gmail.com on 5 Mar 2013 at 3:51

GoogleCodeExporter 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

Original comment by terminat...@gmail.com on 8 Mar 2013 at 3:52

GoogleCodeExporter 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.

Original comment by astroski...@gmail.com on 19 Mar 2013 at 6:47

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

Original comment by LlmD...@gmail.com on 19 Mar 2013 at 7:36

GoogleCodeExporter 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?

Original comment by rlminecr...@gmail.com on 6 Apr 2013 at 8:22

GoogleCodeExporter 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

Original comment by rlminecr...@gmail.com on 6 Apr 2013 at 8:33

GoogleCodeExporter 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.

Original comment by LlmD...@gmail.com on 7 Apr 2013 at 12:55

GoogleCodeExporter commented 9 years ago
Those timings look absolutely fine.

Original comment by Elg...@palmergames.com on 15 Apr 2013 at 12:03

GoogleCodeExporter commented 9 years ago

Original comment by LlmD...@gmail.com on 13 May 2013 at 2:40