[ https://issues.apache.org/jira/browse/KAFKA-1623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133305#comment-14133305 ]
Neha Narkhede commented on KAFKA-1623: -------------------------------------- [~hzshlomi], [~guozhang], One thing that might be worth trying is setting the backlog explicitly on line 236 of SocketServer.scala. Today we rely on the default which I'm not sure is perfect. Agree that this shouldn't be configurable, so it will require some performance testing to arrive at the right value of the backlog. Suggested change - {noformat} serverChannel.socket.bind(socketAddress, backlog) {noformat} > kafka is sometimes slow to accept connections > --------------------------------------------- > > Key: KAFKA-1623 > URL: https://issues.apache.org/jira/browse/KAFKA-1623 > Project: Kafka > Issue Type: Bug > Components: core > Affects Versions: 0.9.0 > Reporter: Shlomi Hazan > Labels: performance > > from SocketServer.scala:144 > the Acceptor can wait up to 500 millis before processing the accumulated FDs. > Also, the backlog of the acceptor socket seems not to be defined, which may > be problematic if all 500 millis are elapsed before the thread awakes. > setting the backlog is doable using the proper ServerSocket Ctor, and maybe > better be provisioned via configuration. -- This message was sent by Atlassian JIRA (v6.3.4#6332)