-
Notifications
You must be signed in to change notification settings - Fork 660
Server stuck : Kill -9 is the only way to stop it. #2532
Comments
It seems like this might be a plugin issue, could you try removing all of them? |
I there is no player on the server, the server doesn't get stuck. The server does not lag. It freeze suddenly, without any warning signs. I've tried to set timings on, but i cannot perform the timings merge to get the result and find a possible infinite loop somewhere. That happend again this morning on one server => Top command PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Is there a way to stop the server and to know which part of the code is running. Like a debug mode ? |
I ran into the same problem |
This seems like a loop that is not ending. We did get reports of this before, the cause being on a plugin that created Async Tasks not properly. |
I'll start to add debug level 2 and wait for the next issue. |
I've 2 types of tasks called by the main thread.
Is it correct ? |
Async Task != Scheduled task (Plugin Task) |
Oh yes what i've written is wrong : I've removed all my implementation of the CallbackTask class in my code. I'll see today if the server get stuck again. |
Async tasks might cause issues too, due to the serialization used. |
@3do2 If your server hangs up again, try running this script: Be sure to have only one PocketMine server running at that moment (the blocked one), it'll get all kinds of useful info from the existing process without stopping it. Be aware that you need strace installed and it'll ask you for root. |
This is due to PHP waiting on an non-existing resource/memory.
As strace shows (output over 15 seconds), PHP is waiting on process 19495 thread 19499 for the memory address If someone with this issue could try to disable Query, tell me if the server stops hanging up. |
ok thanks the server hangs up again and i run your script. I've looked at it but it's hard to interpret. |
Server HangUp Again => I don't see any FUTEX_WAIT in my analysis.log files ? |
so what would be the solution @shoghicp |
@3do2 Yours is dead! |
yes i got this problem too, but i still waiting when all not responding Fatal error: Out of memory (allocated 1268514816) (tried to allocate 33554432 bytes) in phar:///root/Downloads/pm/PocketMine-Soft.phar/src/raklib/server/Session.php on line 176 |
If i wait, nothing happens (i've tried to wait up to 12 hours) |
@3do2 i have made a temporary solution to this issue. https://github.com/iJoshuaHD/ASR-Screen-Listener its not that accurate but helps. this is useful until a solution for this matter is settled. |
I got same issue,something players get 20+,then it Will stuck,And CPU use 100%, |
WorldEditArt。this damn plugin,made this issue |
@Alcatraz-Du I've this plugin too, but I got this error before i add this plugin |
@shoghicp will you update your script soon :/ my servers are hanging up so frequently :( |
@Alcatraz-Du blame your plugins installed thats not present in the pocketmine plugin repo. |
@shoghicp I've removed all async tasks from all plugins... but my servers still hangup :( |
@shoghicp told me today it can be a php binary issue. |
@3do2 or even PHP 5.6.0 |
I had a test,use 5.6.4 ,the load will become very high,but use 5.6.2 load will get normal,5.6.4 is easier get stuck than 5.6.2 |
my servers get stucks this morning with 5.6.5, i restarted them with 5.6.1... let's wait... |
I've tried all php version from 5.6.0 to 5.6.5, and the issue still occurs :( |
@wrewolf is it ok with 5.6.6 ? |
Ome of my friend told me he got the same issue, and he think it's because config.yml,,,,when server process the .yml, config.yml his server will get stuck |
my servers get stucks after hours. can you explain more the reason why config.yml ca explain this bug. I noticed that each time the console is frozen, i have those non ansi text in the chat a few second before. 02:36:32 [INFO] <fidel[0]> у тебя нехватает на ищо компамэс The server is on a infinite loop (process is not dead) because the process consume near 100% of the CPU while the console is frozen. I think there is an infinite loop somewhere in the pocketmine code, and this infinite loop is triggered by a player event that can occurs at anytime (a few minutes or hours). Pehaps a chat lenghts overflow UTFXX or anithing else ? |
Sometimes I use config.yml to write down player's inventory,then read config to ,give player's items, then It stuckef |
5.6.6 freeze too |
My server is running for more than 3 days without console freeze. Online ~13 players. For test I changed the source server files.
Maybe this will help find a bug with freeze |
@Q-bick '1' is dangerous, because Offline Player data doesn't saved, and maybe i think it will result user data lost. |
13 players without freezing is reasonable -,- try hosting 30 or more and lets see what happens with more plugins |
@Q-bick why did you remove this ? Did you notice that the server get stuck when thoses functions were called ? |
before freze
|
@3do2 one way the server can freeze is by being stuck on a kernel call, specifically to a non-existent old file. |
@shoghicp none of my plugins delete files while the server is running :/ |
it happens from time to time. well idk why this happens. |
@xxFlare same for me |
02:36:32 [INFO] у тебя нехватает на ищо компамэс This "non ansi" text is on russian language. Means - "You do not have enough..."and then, I see not real words "ищо компамэс". I cant understand what they mean. May be some plugin have memory leaks and crashes with this message when free memory runs out. |
Please see this article Seems like FUTEX_WAIT was broken in the Linux kernel.
If you had this problem, try updating to 3.18 or newer kernel. You can also check if your maintainer has backported the fix to older versions. |
:O |
Twice a day the server is stuck.
with 40 palyers (full) almost all the time.
A second server with 40 players have the same issue.
OS : Debian
No errors on the log.
No messages
If i try to launch a command into the console i've no response.
If i do a CTRL-C that do not stop the server.
The only way to restart the server is to perform a kill -9 into the process.
Because I've no crashdump nor message it"s hard to give more informations :/
I run the Build 936, but I've got this issue for a long time.
Can i do something to have more informations about the origin of the bug ?
The text was updated successfully, but these errors were encountered: