java.net.SocketException: No buffer space available
https 访问url在调用量不大的情况下
java.net.SocketException: No buffer space available (maximum connections reached
?): connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method) ~[na:1.7.0_
15]
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI
mpl.java:69) ~[na:1.7.0_15]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja
va:339) ~[na:1.7.0_15]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket
Impl.java:200) ~[na:1.7.0_15]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
:182) ~[na:1.7.0_15]
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) ~[na:1.7.0
_15]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) ~[na:1.7.0
_15]
at java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_15]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) ~[na:1
.7.0_15]
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160
) ~[na:1.7.0_15]
at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[na:1.7.0_15
]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:378) ~[na:1.7.
0_15]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:473) ~[na:1.7.
0_15]
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:270) ~
[na:1.7.0_15]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:327) ~[na
:1.7.0_15]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(AbstractDelegateHttpsURLConnection.java:191) ~[na:1.7.0_15]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:931) ~[na:1.7.0_15]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:177) ~[na:1.7.0_15]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLCon
nectionImpl.java:153) ~[na:1.7.0_15]
at wemedia.wx.util.WeixinUtil.httpRequest(WeixinUtil.java:141) [WeixinUt
il.class:na]
at wemedia.wx.util.WeixinUtil.getAccessToken(WeixinUtil.java:102) [Weixi
nUtil.class:na]
at wemedia.wx.service.MenuService.processRequest(MenuService.java:67) [M
enuService.class:na]
at wemedia.wx.servlet.MenuServlet.doPost(MenuServlet.java:36) [MenuServl
et.class:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) [servlet
-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [servlet
-api.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:303) [catalina.jar:7.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:208) [catalina.jar:7.0.54]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52
) [tomcat7-websocket.jar:7.0.54]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:241) [catalina.jar:7.0.54]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:208) [catalina.jar:7.0.54]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:220) [catalina.jar:7.0.54]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:122) [catalina.jar:7.0.54]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:501) [catalina.jar:7.0.54]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:171) [catalina.jar:7.0.54]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102) [catalina.jar:7.0.54]
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
950) [catalina.jar:7.0.54]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:116) [catalina.jar:7.0.54]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:408) [catalina.jar:7.0.54]
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:1040) [tomcat-coyote.jar:7.0.54]
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:607) [tomcat-coyote.jar:7.0.54]
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpo
int.java:2442) [tomcat-coyote.jar:7.0.54]
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin
t.java:2431) [tomcat-coyote.jar:7.0.54]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145) [na:1.7.0_15]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615) [na:1.7.0_15]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh
read.java:61) [tomcat-coyote.jar:7.0.54]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_15]
所有连接均已关闭,最终查到为客户安装了监控服务 ntmssvc ,关闭此监控服务程序正常。