lots of [io.netty.channel.nio.NioEventLoop select] warnings

416 views
Skip to first unread message

Siqin WANG

unread,
Aug 3, 2015, 9:20:22 AM8/3/15
to vert.x

Hello,

In our production environment, we have a lots of netty warning as below :

Jul 23, 2015 3:17:25 PM io.netty.channel.nio.NioEventLoop select
WARNING: Selector.select() returned prematurely 512 times in a row; rebuilding selector.
Jul 23, 2015 3:17:25 PM io.netty.channel.nio.NioEventLoop rebuildSelector
INFO: Migrated 1 channel(s) to the new Selector.
...

I've searched for some explanation on the internet. It is said to be a netty solution of a jdk bug (https://github.com/netty/netty/issues/2426).

Is it normal to have such kind of warnings while running a vertx application ? 

Thank you.

Siqin

Nat

unread,
Aug 3, 2015, 12:21:21 PM8/3/15
to vert.x
What version of Netty do you use in your production environment?

Siqin WANG

unread,
Aug 3, 2015, 12:48:00 PM8/3/15
to vert.x
Hi Nat,

We don't use Netty directly in our application. So it is the 4.0.21.Final version (netty-all-4.0.21.Final.jar) which is used by Vertx (v 2.1.5).

And I wonder if these warnings can be related to the cause of the exceptions mentioned in my early posts.

Thanks.

Siqin 

Nat

unread,
Aug 3, 2015, 2:13:27 PM8/3/15
to vert.x
What linux kernel are you using? I have seen people mentioning that Linux 3.10 is the cause of this issue.

Siqin WANG

unread,
Aug 4, 2015, 4:14:33 AM8/4/15
to vert.x
It's 3.19.0-25-generic.
Is it normal to have theses warnings ?

Nat

unread,
Aug 4, 2015, 12:15:47 PM8/4/15
to vert.x
How often does it occur? If it does not happen very very often, it should be okay.

Siqin WANG

unread,
Aug 4, 2015, 12:22:12 PM8/4/15
to vert.x
That depends on whether the load is important. When that happens, the warnings occur every 5-10 minutes.

Nat

unread,
Aug 4, 2015, 12:34:12 PM8/4/15
to vert.x
This particular bug was causing a high CPU issue due to excessive selector list rebuild. If it only occurs once every 5-10 minutes, it should be okay.
Reply all
Reply to author
Forward
0 new messages