1

我们在安装 wso2 esb 时遇到了问题。

我们只配置了 4 个代理服务,一个月后没有问题,我们开始出现以下错误:

2013-10-02 09:29:09,366 [-] [PassThroughHTTPSListener]  WARN PassThroughHttpSSLListener System may be unstable: HTTPS ListeningIOReactor encountered a checked exception : Too many open files
java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:189)
at org.apache.http.impl.nio.reactor.DefaultListeningIOReactor.processEvent(DefaultListeningIOReactor.java:129)
at org.apache.http.impl.nio.reactor.DefaultListeningIOReactor.processEvents(DefaultListeningIOReactor.java:113)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:313)
at org.apache.synapse.transport.passthru.PassThroughHttpListener$2.run(PassThroughHttpListener.java:180)
at java.lang.Thread.run(Thread.java:738)

如果我列出 java 打开的文件列表,我会看到数百个:

java      3906       root  150u     sock                0,7         0t0       9928 can't identify protocol
java      3906       root  151u     sock                0,7         0t0      10004 can't identify protocol

有人可以指出这个错误的原因吗?

谢谢你。

4

1 回答 1

0

请增加最大打开文件限制..

Eg: ulimit -f 65000
于 2013-10-02T08:16:03.913 回答