本文介绍了WSO2 ESB 打开的文件太多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

We have a problem in our installation of wso2 esb.

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

We have only 4 proxy services configured, after one month without problems we started to have the following error:

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打开的文件列表,我会看到数百个:

If I list the list of files open by java, I will see hundreds of:

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

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

Someone could point me out the cause of this error?

谢谢.

推荐答案

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

Please increase the max open file limit..

Eg: ulimit -f 65000

这篇关于WSO2 ESB 打开的文件太多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 04:07