集成了acm配置管理后,本地和linux上启动项目,都正常。可是,时不时会报如下的错,有时候几分钟就出来一次,有时一天出来几次。为什么呢?
2018-11-22 13:37:20.922 ERROR [nd.client.Timer] c.taobao.diamond.client.impl.DiamondEnv : [] [] [Diamond-0001] java.net.SocketTimeoutException: connect timed out ERR-CODE: [Diamond-0001], Type: [环境问题], More: [http://console.taobao.net/help/Diamond-0001]
2018-11-22 13:37:20.923 ERROR [nd.client.Timer] c.taobao.diamond.client.impl.DiamondEnv : [http://acm.aliyun.com:8080/diamond-server/diamond] [] [DIAMOND-XXXX] [check-serverlist] exception. msg=java.net.SocketTimeoutException: connect timed out
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
at com.taobao.diamond.client.impl.HttpSimpleClient.httpGet(HttpSimpleClient.java:127)
at com.taobao.diamond.client.impl.HttpSimpleClient.httpGet(HttpSimpleClient.java:248)
at com.taobao.diamond.client.impl.ServerListManager.getApacheServerList(ServerListManager.java:156)
at com.taobao.diamond.client.impl.ServerListManager$GetServerListTask.run(ServerListManager.java:120)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:308)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
感觉像是网络问题,如果服务部署在ecs上可以考虑更换为内网endpoint
相关文档:https://help.aliyun.com/document_detail/64129.html?spm=a2c4g.11186623.6.572.22a82f42Qaj1z0
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。