gaul / s3proxy

Access other storage backends via the S3 API
Apache License 2.0
1.65k stars 220 forks source link

java.io.IOException: Too many open files when using Azure Blob backend #589

Closed alifirat closed 5 months ago

alifirat commented 6 months ago

Hi,

We are using the following s3proxy configuration (Azure blob backend) with the latest version.

s3proxy.endpoint=http://localhost:8080
# authorization must be aws-v2, aws-v4, aws-v2-or-v4, or none
s3proxy.authorization=aws-v2-or-v4
s3proxy.identity=s3proxyidentity
s3proxy.credential=s3proxycredential
s3proxy.ignore.unknown_headers=true
# 250 * 1024 * 1024 MB
s3proxy.v4-max-non-chunked-request-size=262144000

jclouds.azureblob.auth=azureKey
jclouds.provider=azureblob
jclouds.endpoint=https://XXX.blob.core.windows.net
jclouds.identity=XXX
jclouds.credential=YYY

What can lead s3proxy to raise a continuous exception ?

java.io.IOException: Too many open files
Jan 05 15:49:40  java[31478]:         at java.base/sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
Jan 05 15:49:40  java[31478]:         at java.base/sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:533)
Jan 05 15:49:40  java[31478]:         at java.base/sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:285)
Jan 05 15:49:40  java[31478]:         at org.gaul.shaded.org.eclipse.jetty.server.ServerConnector.accept(ServerConnector.java:409)
Jan 05 15:49:40  java[31478]:         at org.gaul.shaded.org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:748)
Jan 05 15:49:40  java[31478]:         at org.gaul.shaded.org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)
Jan 05 15:49:40  java[31478]:         at org.gaul.shaded.org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)
Jan 05 15:49:40  java[31478]:         at org.gaul.shaded.org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)
Jan 05 15:49:40  java[31478]:         at java.base/java.lang.Thread.run(Thread.java:829)
alifirat commented 5 months ago

For any future readers having the same issue, we just need to increase the max open file and it worked just fine.