-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server lag/crash & Error in Console #13
Comments
Hey there, Can you check that your database connection details are correct? The problem you're describing here looks suspiciously like an issue with Hibernate that I haven't been able to nail down yet - where it tries to connect infinitely and hangs the main thread if it can't get a connection |
I attempted to add a preliminary check using JDBC in this commit: e3aa427 I'll comment again when I have a build for you. |
Alright, this build should check the database details when the plugin loads. Give it a shot and let me know how you get on. If it doesn't detect a problem there, I'd like a longer log output, please. http://bamboo.gserv.me/browse/PLUG-BLOCK-168/artifact/shared/Plugin-JAR/ArchBlock-0.1.1.jar |
Thanks, but the problem happened hours later after the server start. So, there is defenitly a connection to the MySQL database otherwise the plugin wouldn't work? |
Hmm, that's kind of weird. Roughly how many hours, would you say? Is your MySQL server running okay? It has enough RAM and disk space? Just do the usual checks to make sure. |
I've checked the MySQL Server and it's all running correctly. Maybe you could add a feature that allows to remove data from players who haven't been online for X days. I've installed the version you sent me and I will check for errors tomorrow. Thank you for your help! :) |
Hmm, I don't currently store the players' last online times, but it's not a bad idea. I'll make a separate ticket for it. Any situational info for the error is handy, by the way. The kind of stuff that was happening, whether any commands were run, that kind of thing. Just to bear in mind. Thanks for your cooperation so far \o/ |
Here is a new Error:
|
Are you using some form of anti-cheat plugin? If not, this makes me think that someone is placing blocks in the same place multiple times very fast - while the plugin does check block ownership for every placed and broken block, if players are using mods to edit too fast then it's possible that they're editing faster than the MySQL database can handle. How many players does your server regularly get? |
Yes I use NoCheatPlus. |
Alright, and this was at random? You weren't setting the ownership on an area or anything like that? |
No, I haven't done anything. |
Hmm, threads dying like that is definitely troubling.. I'll have to look into that one, but it shouldn't stop the plugin/server from working for now |
I don't know why but there is a bug in the plugin which crashes the server. :(
Error:
The text was updated successfully, but these errors were encountered: