有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

对Jetty Jersey应用程序的java请求在1分钟后终止

我有一个java jetty+jersey应用程序,它有一些返回流式输出的rest端点。请求可能会运行几分钟。当我在本地运行它时,长时间运行的请求可以正常工作。当我将应用程序部署到Google Compute Engine虚拟机时,30秒后请求总是失败:

$ time curl -s  'https://[redacted]' -H [redacted]  -iv > /dev/null
*   Trying [redacted]...
* Connected to [redacted] port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate: [redacted]
* Server certificate: thawte SSL CA - G2
> GET /[redacted] HTTP/1.1
> Host: [redacted]
> User-Agent: curl/7.43.0
> Accept: */*
> [redacted]
> 
< HTTP/1.1 200 OK
< Content-Type: application/octet-stream
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS
< Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept,MaxDataServiceVersion,AuthorizationFlow,Authorization
< Access-Control-Allow-Credentials: true
< Transfer-Encoding: chunked
< Server: Jetty(9.1.z-SNAPSHOT)
< Via: 1.1 google
< Date: Fri, 27 May 2016 13:31:05 GMT
< 
{ [932 bytes data]
* SSLRead() return error -9806
* Closing connection 0

real    0m30.133s
user    0m0.194s
sys 0m0.188s

从服务器日志:

    May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi org.eclipse.jetty.io.EofException
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:189)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:335)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:125)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpConnection$ContentCallback.process(HttpConnection.java:680)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.util.IteratingCallback.processIterations(IteratingCallback.java:166)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:126)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:303)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:720)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:751)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:130)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:124)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:328)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.internal.ResponseWriter$NonCloseableOutputStreamWrapper.write(ResponseWriter.java:325)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.CommittingOutputStream.write(CommittingOutputStream.java:229)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$UnCloseableOutputStream.write(WriterInterceptorExecutor.java:299)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.io.BufferedWriter.write(BufferedWriter.java:230)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.io.Writer.write(Writer.java:157)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at com.tie.flow.bqapi.bigquery.BigQueryTableReaderService$1.write(BigQueryTableReaderService.java:62)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:78)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:60)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:106)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:86)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.filter.LoggingFilter.aroundWriteTo(LoggingFilter.java:311)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1130)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:711)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:444)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:434)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:329)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:711)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1114)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:479)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1046)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.Server.handle(Server.java:462)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:281)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.lang.Thread.run(Thread.java:745)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi Caused by: java.io.IOException: Broken pipe
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.ch.IOUtil.write(IOUtil.java:148)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:504)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:169)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011... 67 more
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi May 27, 2016 1:38:00 PM org.glassfish.jersey.server.ServerRuntime$Responder writeResponse
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi SEVERE: An I/O error has occurred while writing a response message entity to the container output stream.
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi javax.ws.rs.WebApplicationException: HTTP 500 Internal Server Error
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at com.tie.flow.bqapi.bigquery.BigQueryTableReaderService$1.write(BigQueryTableReaderService.java:68)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:78)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:60)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:106)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:86)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.filter.LoggingFilter.aroundWriteTo(LoggingFilter.java:311)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1130)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:711)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:444)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:434)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:329)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:711)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1114)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:479)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1046)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.Server.handle(Server.java:462)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:281)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.lang.Thread.run(Thread.java:745)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi Caused by: org.eclipse.jetty.io.EofException
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:189)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:335)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:125)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpConnection$ContentCallback.process(HttpConnection.java:680)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.util.IteratingCallback.processIterations(IteratingCallback.java:166)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:126)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:303)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:720)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:751)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:130)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:124)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:328)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.servlet.internal.ResponseWriter$NonCloseableOutputStreamWrapper.write(ResponseWriter.java:325)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.CommittingOutputStream.write(CommittingOutputStream.java:229)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$UnCloseableOutputStream.write(WriterInterceptorExecutor.java:299)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.io.BufferedWriter.write(BufferedWriter.java:230)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at java.io.Writer.write(Writer.java:157)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at com.tie.flow.bqapi.bigquery.BigQueryTableReaderService$1.write(BigQueryTableReaderService.java:62)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011... 45 more
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi Caused by: java.io.IOException: Broken pipe
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.ch.IOUtil.write(IOUtil.java:148)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:504)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:169)
May 27 13:38:00 bqapi-grp-fa7g supervisord: bqapi #011... 67 more

原因可能是什么


共 (1) 个答案

  1. # 1 楼答案

    看起来你有:

    1. 低水平java.io.IOException: Broken pipe
    2. 哪个码头检测到并报告为org.eclipse.jetty.io.EofException
    3. Jersey检测到并试图在响应中报告错误500,但无法报告,因为响应已经失效

    乍一看,这似乎是Jersey中的一个bug,它试图对已经提交的响应编写错误响应(这违反了servlet规范)

    但很可能还有其他事情发生,正如你所说,这似乎发生在1分钟的标志。这指向您的套接字、防火墙或Jetty之外的某个配置,在一段时间后终止连接

    我们看到的部分

    Server: Jetty(9.1.z-SNAPSHOT)
    Via: 1.1 google
    

    指向一些有趣的问题

    首先,为什么要运行旧Jetty的不稳定快照版本

    而且Via: 1.1 google可能表示GCE/GKE/GAE环境,如果是这种情况,那么您部署服务器的环境中存在哪些网络限制