WSO2 IS 持续出现打开的文件过多的错误。

huangapple go评论55阅读模式
英文:

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]。如果需要,确保重新启动平台。

  1. https://is.docs.wso2.com/en/6.0.0/deploy/performance/performance-tuning-recommendations/
英文:

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.

  1. https://is.docs.wso2.com/en/6.0.0/deploy/performance/performance-tuning-recommendations/

huangapple
  • 本文由 发表于 2023年5月29日 12:04:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76354614.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定