You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a worker thread gets stuck (for example, in an endless loop or a deadlock), it seems that the server keeps spawning new threads to do the same task, which may make the situation worse.
To check this, I created a small server that, when accepting the "HANG" event, just does a for(;;) loop. This is what I see in the log:
INFO 09:53:46 [New I/O worker #6 ]: start
INFO 09:53:46 [New I/O worker #6 ]: looping forever
INFO 09:54:38 [New I/O worker #8 ]: start
INFO 09:54:38 [New I/O worker #8 ]: looping forever
INFO 09:54:58 [New I/O worker #10 ]: start
INFO 09:54:58 [New I/O worker #10 ]: looping forever
INFO 09:55:18 [New I/O worker #12 ]: start
INFO 09:55:18 [New I/O worker #12 ]: looping forever
INFO 09:55:38 [New I/O worker #14 ]: start
INFO 09:55:38 [New I/O worker #14 ]: looping forever
INFO 09:55:58 [New I/O worker #16 ]: start
INFO 09:55:58 [New I/O worker #16 ]: looping forever
...
The text was updated successfully, but these errors were encountered:
I did not faced with such case, think it's somethere in netty. You can take a look at SocketIOPipelineFactory.getPipeline - it is the message handlers chain builder.
When a worker thread gets stuck (for example, in an endless loop or a deadlock), it seems that the server keeps spawning new threads to do the same task, which may make the situation worse.
To check this, I created a small server that, when accepting the "HANG" event, just does a for(;;) loop. This is what I see in the log:
INFO 09:53:46 [New I/O worker #6 ]: start
INFO 09:53:46 [New I/O worker #6 ]: looping forever
INFO 09:54:38 [New I/O worker #8 ]: start
INFO 09:54:38 [New I/O worker #8 ]: looping forever
INFO 09:54:58 [New I/O worker #10 ]: start
INFO 09:54:58 [New I/O worker #10 ]: looping forever
INFO 09:55:18 [New I/O worker #12 ]: start
INFO 09:55:18 [New I/O worker #12 ]: looping forever
INFO 09:55:38 [New I/O worker #14 ]: start
INFO 09:55:38 [New I/O worker #14 ]: looping forever
INFO 09:55:58 [New I/O worker #16 ]: start
INFO 09:55:58 [New I/O worker #16 ]: looping forever
...
The text was updated successfully, but these errors were encountered: