Giter Club home page Giter Club logo

Comments (32)

DiddiZ avatar DiddiZ commented on July 19, 2024

Could be a broken players table.

REPAIR TABLE lb-players;

If that doesn't help, post the error messages including stack trace from server.log

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

'The storage engine for the table doesn''t support repair'

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

So paste the stack trace from server.log here

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

There is none...

"2011-11-22 04:00:19 [INFO] [LogBlock] Permissions plugin found.
2011-11-22 04:00:19 [INFO] [LogBlock] Scheduled consumer with bukkit scheduler."

(Yes, I looked throughout the log)

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

kk, try this to rebuild the table:
(it's my guess that the table is corrupted)

CREATE TABLE lb-players2 LIKE lb-players;
INSERT INTO lb-players2 SELECT * FROM lb-players;
RENAME TABLE lb-players TO lb-players-old;
RENAME TABLE lb-players2 TO lb-players;

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Ok trying it now.

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Did not help at all. The issue persists. If you give me the sql, I can dump the database for you, but you probably don't want the main block tables as they are over 4 gb...

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

I think I got the reason: The playerName column is treated case sensitive.

Try:
ALTER TABLE lb-players ENGINE = MyISAM

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Nope. Still occurring... This could be bad.

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

Wait, my bad. Engine doesn't affect case sensitivity at all, it's the collation:

ALTER TABLE lb-players CHARACTER SET latin1 COLLATE latin1_swedish_ci;

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Nope :(

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

Hm, one last thing: the index could be full.
Change the data type of player id coumns to medium int
ALTER TABLE lb-players MODIFY COLUMN playerid MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE lb-chat MODIFY COLUMN playerid MEDIUMINT UNSIGNED NOT NULL; (if this table exists)
ALTER TABLE lb-<worldname> MODIFY COLUMN playerid MEDIUMINT UNSIGNED NOT NULL;
ALTER TABLE lb-<worldname>-kills MODIFY COLUMN killer MEDIUMINT UNSIGNED, MODIFY COLUMN victim MEDIUMINT UNSIGNED NOT NULL; (if this table exists)

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Seems to have worked! :D

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

2011-11-23 21:19:19 [SEVERE] [LogBlock Consumer] SQL exception on INSERT INTO lb-MainWorld-nether (date, playerid, replaced, type, data, x, y, z) VALUES (FROM_UNIXTIME(1322101129), 66540, 87, 0, 0, '74', 49, '2');:
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'playerid' at row 1
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3591)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:779)
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:622)
at de.diddiz.LogBlock.Consumer.run(Consumer.java:278)
at de.diddiz.LogBlock.CommandsHandler$CommandSaveQueue.run(CommandsHandler.java:506)
at de.diddiz.LogBlock.CommandsHandler$AbstractCommand.(CommandsHandler.java:364)
at de.diddiz.LogBlock.CommandsHandler$CommandSaveQueue.(CommandsHandler.java:490)
at de.diddiz.LogBlock.CommandsHandler$CommandRollback.run(CommandsHandler.java:568)
at de.diddiz.LogBlock.CommandsHandler$AbstractCommand.(CommandsHandler.java:364)
at de.diddiz.LogBlock.CommandsHandler$CommandRollback.(CommandsHandler.java:550)
at de.diddiz.LogBlock.LBToolListener$1.run(LBToolListener.java:93)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Unknown Source)

I need to fix all my tables now :( Shouldn't LB be updated to autoscale the ints?

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

yeah, it's planned, but I didn't get the time yet.

so it works now, great.

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Wait, now I get massive lag from LB, increasing as time passes.

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

What kind of lag?
Growing queue or server laggs?

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Server lag. The TPS goes from 20 solid slowly down to 1 TPS. (The server hardware is insane, so it's not that)

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

As this doesn't affect the MC server itself, check if the MySQL server is having troubles.
It may be necessary to regenerate the playerid indices then.

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

How would I tell if it is? Is there a way to time it?

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

I don't know your server, but if you've got root access use htop (on unix machines)

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

It's a windows server, but the mysql database is running on raided SSD's and (appears) to be having no issues.

In any event, are there any things I can do to optimize the main world table? Its over 4 gb in size.

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

Try if
ANALYZE TABLE lb-MainWorld;
OPTIMIZE TABLE lb-MainWorld;

changes something, depending on the engine this will rebuild the indices.

or move older log into a seperate table (it's unhandy, but indices will be updated faster)

Btw, are you sure the lag is caused by LB?
As lb uses a queue, it can't really lag the server, without significantly increasing the queue ...

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

I can confirm that LB is causing significant lag and the queue is not large. Do you know what could be causing this?

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

kk, what are you logging?

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

And does the lag disappear when using LB 1.41 instead?
(you need to reenable the things you want to log in old format)

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Yes, the lag does disappear, but nothing is being logged. D: What is the old format?

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

You need to reenable loggings:

Old format:

logBlockCreations: true
logBlockDestroyings: true
logCakes: false
logKills: false
logDoors: false
logFire: true
logSnowFade: false
logChestAccess: false
logSignTexts: true
logWaterFlow: false
logChat: false
logSnowForm: false
logButtonsAndLevers: false
logLeavesDecay: false
logEndermen: false
logLavaFlow: false
logExplosions: true

New format:

logging:
  TNTEXPLOSION: true
  SNOWFORM: true
  MISCEXPLOSION: true
  LEAVESDECAY: false
  SIGNTEXT: true
  KILL: false
  CAKEEAT: false
  LAVAFLOW: false
  CHAT: false
  BLOCKBREAK: true
  FIRE: true
  SWITCHINTERACT: false
  WATERFLOW: false
  BLOCKPLACE: true
  SNOWFADE: false
  CHESTACCESS: true
  CREEPEREXPLOSION: true
  GHASTFIREBALLEXPLOSION: true
  DOORINTERACT: false
  ENDERMEN: true

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

Unfortunately, after enabling logging, it lags quite a lot. The TPS slowly decreases until it crashes on a save. ( ~70 players, <30% core utilization on all 8 cores and <50% allocated memory usage)

Here is my config:
http://pastie.org/2924721

World config:
http://pastie.org/2924723

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

Which version was that now, 1.41 or 1.42+ (including latest dev)?

Maybe it could be water/lava flow and leaves decay, especially latter causes a lot of block changes.

from logblock.

don4of4 avatar don4of4 commented on July 19, 2024

LogBlock v1.41 #63

from logblock.

DiddiZ avatar DiddiZ commented on July 19, 2024

kk, maybe my new config system has mor impact than expected ...

from logblock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.