Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.io.IOException: Too many open files #195

Open
NicholasLD opened this issue Jun 17, 2024 · 3 comments
Open

java.io.IOException: Too many open files #195

NicholasLD opened this issue Jun 17, 2024 · 3 comments

Comments

@NicholasLD
Copy link

NicholasLD commented Jun 17, 2024

my environment:
JDK Temurin-21.0.3+9
SpringBoot 3.1.7
BingAds SDK Version: 13.0.20.2

Interceptor for {https://bingads.microsoft.com/Billing/v13}CustomerBillingService#{https://bingads.microsoft.com/Billing/v13}SearchInsertionOrders has thrown exception, unwinding now java.io.UncheckedIOException: java.io.IOException: Too many open files at java.net.http/jdk.internal.net.http.HttpClientImpl.<init>(HttpClientImpl.java:506) at java.net.http/jdk.internal.net.http.HttpClientImpl.create(HttpClientImpl.java:434) at java.net.http/jdk.internal.net.http.HttpClientBuilderImpl.build(HttpClientBuilderImpl.java:143) at org.apache.cxf.transport.http.HttpClientHTTPConduit.setupConnection(HttpClientHTTPConduit.java:231) at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:529) at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:47) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:528) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:439) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:354) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:312) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140) at jdk.proxy2/jdk.proxy2.$Proxy289.searchInsertionOrders(Unknown Source) at org.xxx.ads.bing.BingBillingService.searchInsertionOrders(BingBillingService.java:39) at org.xxx.xxx.job.FetchTodayPerformanceProcessor.lambda$process$4(FetchTodayPerformanceProcessor.java:78) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: java.io.IOException: Too many open files at java.base/sun.nio.ch.EPoll.create(Native Method) at java.base/sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:79) at java.base/sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36) at java.base/java.nio.channels.Selector.open(Selector.java:295) at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.<init>(HttpClientImpl.java:1122) at java.net.http/jdk.internal.net.http.HttpClientImpl.<init>(HttpClientImpl.java:503) ... 16 common frames omitted

As I was debugging the program and looking through the articles, I found that it would not release the HTTP Connection.

such as: https://stackoverflow.com/questions/26403674/apache-cxf-not-releasing-clients

Is there a solution to avoid this problem or release a new update to fix it?

@quangkevin
Copy link

Any update on this issue?

@schabe77
Copy link

schabe77 commented Sep 23, 2024

See #154

@schabe77
Copy link

https://issues.apache.org/jira/browse/CXF-8903 has been closed. There seems to be a workaround in cxf 4.0.3. apache/cxf@3d70de8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants