英文:
WSO2 IS continuous error on too many opened files
问题
在wso2carbon.log
中,我不断看到以下日志被持续打印,指示存在“打开的文件太多”问题。
TID: [-1234] [] [2023-05-28 10:31:46,495] ERROR {org.apache.tomcat.util.net.Acceptor} - Socket accept failed java.io.IOException: 打开的文件太多
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:424)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:252)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:546)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:79)
at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:129)
at java.lang.Thread.run(Thread.java:748)
TID: [-1234] [] [2023-05-28 10:32:44,162] ERROR {org.apache.tomcat.util.net.Acceptor} - Socket accept failed java.io.IOException: 打开的文件太多
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:424)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:252)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:546)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:79)
at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:129)
at java.lang.Thread.run(Thread.java:748)
英文:
In wso2carbon.log
I am seeing the following log being printed continuously indicating that there are Too many open files
.
TID: [-1234] [] [2023-05-28 10:31:46,495] ERROR {org.apache.tomcat.util.net.Acceptor} - Socket accept failed java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:424)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:252)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:546)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:79)
at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:129)
at java.lang.Thread.run(Thread.java:748)
TID: [-1234] [] [2023-05-28 10:32:44,162] ERROR {org.apache.tomcat.util.net.Acceptor} - Socket accept failed java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:424)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:252)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:546)
at org.apache.tomcat.util.net.NioEndpoint.serverSocketAccept(NioEndpoint.java:79)
at org.apache.tomcat.util.net.Acceptor.run(Acceptor.java:129)
at java.lang.Thread.run(Thread.java:748)
答案1
得分: 0
上述错误是因为平台上的软和硬文件限制未正确设置而发生的。要检查软和硬文件限制,您可以在终端中执行以下命令。
ulimit -Sn
ulimit -Hn
如果这些值与WSO2建议的性能调整建议不符,您需要正确设置这些值[1]。如果需要,确保重新启动平台。
英文:
The above error is occurring due to the soft and hard file limits not being correctly set in the platform. To check the soft and hard file limits you can execute the following command in the terminal.
ulimit -Sn
ulimit -Hn
If those values do not align with the performance tuning recommendations suggested by WSO2 you have to set those values properly[1]. Make sure to restart the platform if necessary.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论