Good day tomcat team,

Recently, we updated our tomcat version from 7.x to 8.5.x.  Unfortunately,
after the update, we noticed that an exception filled our log files quite
fast.  I am including the file, exception.txt, which includes a fragment of
our console log displaying the mentioned exception.

After reading several documents related to this issue, we found that this
usually happens when the backend loses a connection to the client side.  So
far, we haven't been able to find a proper solution. All we need is to
prevent  tomcat from generating this exception so many times that it fills
the log files with the same exception.

We tried changing the log level from WARN to SEVERE and it worked, our log
files were no longer cluttered with this exception.  But, we are using the
tool newrelic <https://docs.newrelic.com/> which is registering the same
exception.  I am including the PNG file, new_relic_exception.png, which
includes the evidence from New Relic.

Is there a patched version that could resolve this issue?  Or, is this
problem generated by a missing configuration on our side?


Any help will be greatly appreciated.


Thank you for your time.
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 | Oct 21, 2020 1:31:25 PM 
org.apache.catalina.core.StandardHostValve throwable
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 | WARNING: Exception 
Processing ErrorPage[exceptionType=java.lang.Throwable, 
location=/WEB-INF/common/pages/error/serverError.jsp]
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 | 
org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken 
pipe
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:364)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:833)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:464)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.connector.OutputBuffer.flushCharBuffer(OutputBuffer.java:838)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:246)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.connector.Response.finishResponse(Response.java:443)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:325)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:166)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
java.lang.Thread.run(Thread.java:748)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 | Caused by: 
java.io.IOException: Broken pipe
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
sun.nio.ch.FileDispatcherImpl.write0(Native Method)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
sun.nio.ch.IOUtil.write(IOUtil.java:65)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.SecureNioChannel.flush(SecureNioChannel.java:144)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.SecureNioChannel.write(SecureNioChannel.java:654)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:157)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1306)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:731)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:501)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:439)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:623)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:121)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:225)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.coyote.Response.doWrite(Response.java:602)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:352)
INFO   | jvm 1    | main    | 2020/10/21 13:31:25.101 |         ... 20 more
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to