Saturday, September 15, 2012

Socket issue

Problem

Enteprise Manager 9.1.1.0 shutdown automatically after repeatedly reporting this error.


[ERROR] [Acceptor] [Manager.Acceptor] IOException has been thrown. Closing socket channel connection
java.io.IOException: Too many open files
       at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
       at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:152)
       at com.wily.isengard.postofficehub.link.server.Acceptor.doTask(Acceptor.java:151)
       at com.wily.isengard.util.thread.AThreadedExecutable.run(AThreadedExecutable.java:192)
       at java.lang.Thread.run(Thread.java:662)

Solution

1. Increase the ulimit value in o/s
2. Add this property explicitly  to the EM properties file and recyle the EM process

introscope.enterprisemanager.sockets.abortiveclose=true

This hidden property with 9.1.1.0  which is false by default.
But if it's set to true, wily will abortive close on accepted sockets to avoid this FIN_WAIT1 situation.