MATLAB启动警告:[ERROR] InternalHttpAsyncClient - I/O reactor terminated abnormally
12 次查看(过去 30 天)
显示 更早的评论
When starting MATLAB, the command line displays an error message:[ERROR] InternalHttpAsyncClient - I/O reactor terminated abnormally。<org.apache.http.nio.reactor.IOReactorException: Failure opening selector>org.apache.http.nio.reactor.IOReactorException:Failure opening selector
0 个评论
回答(1 个)
Esther
2025-3-3
If you see the following error when starting MATLAB on a Linux machine:
[ERROR] InternalHttpAsyncClient - I/O reactor terminated abnormally <org.apache.http.nio.reactor.IOReactorException: Failure opening selector>org.apache.http.nio.reactor.IOReactorException: Failure opening selector
at org.apache.http.impl.nio.reactor.AbstractIOReactor.<init>(AbstractIOReactor.java:105)
at org.apache.http.impl.nio.reactor.BaseIOReactor.<init>(BaseIOReactor.java:87)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:320)
at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:191)
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.makePipe(Native Method)
at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:65)
at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)
at java.nio.channels.Selector.open(Selector.java:227)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.<init>(AbstractIOReactor.java:103)
Answer
This error is related to MATLAB requiring a large number of file descriptors to run, which can exhaust the file descriptor limit set for a shell and its child processes.
To work around the issue, please try increasing the file descriptor limit. For example, you can check the file descriptor limit for your shell as follows:
1. For tcsh:
% limit desc
descriptors 1024
2. For bash:
$ ulimit -n
1024
In this case, we might try increasing the file descriptor limit to something like 10,000 to see if that resolves the issue. You can do this as follows:
1. For tcsh:
% limit desc 10000
2. For bash:
$ ulimit -n 10000
Then, start MATLAB.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programming Utilities 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!