哈,现在api-gateway、gateway-helper、manager-service、oauth-server这四个组件容器启动的时候是可以起来的了,但是不知道啥原因,一段时间过后自动停止。。。查看了下日志,信息如下:
e[36mapi-gateway |e[0m 2018-06-01 09:20:23.544 WARN [api-gateway,,,] 1 --- [tbeatExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: java.net.SocketTimeoutException: Read timed out
e[36mapi-gateway |e[0m 2018-06-01 09:20:23.545 ERROR [api-gateway,,,] 1 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_API-GATEWAY/275385023fe5:api-gateway:8080 - was unable to send heartbeat!
e[36mapi-gateway |e[0m
e[36mapi-gateway |e[0m com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:111) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$3.execute(EurekaHttpClientDecorator.java:92) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.sendHeartBeat(EurekaHttpClientDecorator.java:89) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient.renew(DiscoveryClient.java:815) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1379) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
e[36mapi-gateway |e[0m
e[36mapi-gateway |e[0m 2018-06-01 09:20:23.584 ERROR [api-gateway,,,] 1 --- [freshExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error
e[36mapi-gateway |e[0m
e[36mapi-gateway |e[0m com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
e[36mapi-gateway |e[0m at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1]
e[36mapi-gateway |e[0m at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123) ~[jersey-client-1.19.1.jar!/:1.19.1]
e[36mapi-gateway |e[0m at com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.sun.jersey.api.client.Client.handle(Client.java:652) ~[jersey-client-1.19.1.jar!/:1.19.1]
e[36mapi-gateway |e[0m at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682) ~[jersey-client-1.19.1.jar!/:1.19.1]
e[36mapi-gateway |e[0m at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) ~[jersey-client-1.19.1.jar!/:1.19.1]
e[36mapi-gateway |e[0m at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509) ~[jersey-client-1.19.1.jar!/:1.19.1]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplicationsInternal(AbstractJerseyEurekaHttpClient.java:194) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplications(AbstractJerseyEurekaHttpClient.java:165) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:119) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1013) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:927) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1451) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1418) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
e[36mapi-gateway |e[0m Caused by: java.net.SocketTimeoutException: Read timed out
e[36mapi-gateway |e[0m at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_121]
e[36mapi-gateway |e[0m at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[na:1.8.0_121]
e[36mapi-gateway |e[0m at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[na:1.8.0_121]
e[36mapi-gateway |e[0m at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[na:1.8.0_121]
e[36mapi-gateway |e[0m at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:158) ~[httpcore-4.4.6.jar!/:4.4.6]
e[36mapi-gateway |e[0m at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82) ~[httpcore-4.4.6.jar!/:4.4.6]
e[36mapi-gateway |e[0m at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:271) ~[httpcore-4.4.6.jar!/:4.4.6]
e[36mapi-gateway |e[0m at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) ~[httpcore-4.4.6.jar!/:4.4.6]
e[36mapi-gateway |e[0m at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:281) ~[httpcore-4.4.6.jar!/:4.4.6]
e[36mapi-gateway |e[0m at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) ~[httpcore-4.4.6.jar!/:4.4.6]
e[36mapi-gateway |e[0m at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) ~[httpcore-4.4.6.jar!/:4.4.6]
e[36mapi-gateway |e[0m at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[httpclient-4.5.3.jar!/:4.5.3]
e[36mapi-gateway |e[0m at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1]
e[36mapi-gateway |e[0m ... 30 common frames omitted
e[36mapi-gateway |e[0m
e[36mapi-gateway |e[0m 2018-06-01 09:20:23.584 WARN [api-gateway,,,] 1 --- [freshExecutor-0] c.n.d.s.t.d.RetryableEurekaHttpClient : Request execution failed with message: java.net.SocketTimeoutException: Read timed out
e[36mapi-gateway |e[0m 2018-06-01 09:20:23.585 ERROR [api-gateway,,,] 1 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_API-GATEWAY/275385023fe5:api-gateway:8080 - was unable to refresh its cache! status = Cannot execute request on any known server
e[36mapi-gateway |e[0m
e[36mapi-gateway |e[0m com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:111) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134) ~[eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1013) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:927) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient.refreshRegistry(DiscoveryClient.java:1451) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1418) [eureka-client-1.6.2.jar!/:1.6.2]
e[36mapi-gateway |e[0m at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
e[36mapi-gateway |e[0m at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
e[36mapi-gateway |e[0m
e[36mapi-gateway |e[0m 2018-06-01 09:20:33.585 INFO [api-gateway,,,] 1 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Disable delta property : true
e[36mapi-gateway |e[0m 2018-06-01 09:20:33.586 INFO [api-gateway,,,] 1 --- [freshExecutor-0] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null