Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageSentException intermittently during flushBuffers #5560

Closed
dettmoney opened this issue Oct 31, 2018 · 1 comment · Fixed by #5664
Closed

MessageSentException intermittently during flushBuffers #5560

dettmoney opened this issue Oct 31, 2018 · 1 comment · Fixed by #5664
Assignees
Labels
in:Transport release bug This bug is present in a released version of Open Liberty release-18.0.0.4 team:Sirius

Comments

@dettmoney
Copy link
Member

I'm seeing this in at least 18.0.0.3 (and possibly before that) and 18.0.0.4 drivers. I'm doing performance testing for the new SPECjEnterprise web profile benchmark. I don't see any failed requests, but when I see the exception at the start of my run, it seems to happen for every forward. For example, in my long running test, I have 4 liberty servers with this app installed. Currently, I see the exception on two of my servers, and each one has over 700k instances. Here's the stack from FFDC:

Exception = com.ibm.wsspi.genericbnf.exception.MessageSentException
Source = com.ibm.wsspi.http.ee7.HttpOutputStreamEE7
probeid = flushBuffers
Stack Dump = com.ibm.wsspi.genericbnf.exception.MessageSentException: Message already sent
at com.ibm.ws.http.channel.internal.inbound.HttpInboundServiceContextImpl.sendResponseBody(HttpInboundServiceContextImpl.java:773)
at com.ibm.ws.http.channel.internal.outbound.HttpOutputStreamImpl.flushBuffers(HttpOutputStreamImpl.java:514)
at com.ibm.ws.http.channel.internal.outbound.HttpOutputStreamImpl.flush(HttpOutputStreamImpl.java:618)
at com.ibm.wsspi.http.ee7.HttpOutputStreamEE7.flush(HttpOutputStreamEE7.java:299)
at com.ibm.ws.http.channel.internal.outbound.HttpOutputStreamImpl.flush(HttpOutputStreamImpl.java:629)
at com.ibm.ws.webcontainer.osgi.response.WCOutputStream.flush(WCOutputStream.java:242)
at com.ibm.ws.webcontainer.srt.SRTOutputStream.flush(SRTOutputStream.java:72)
at java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:318)
at java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:153)
at java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:254)
at com.ibm.wsspi.webcontainer.util.BufferedWriter.writeOut(BufferedWriter.java:696)
at com.ibm.wsspi.webcontainer.util.BufferedWriter.flushChars(BufferedWriter.java:518)
at com.ibm.wsspi.webcontainer.util.BufferedWriter.flush(BufferedWriter.java:490)
at java.base/java.io.PrintWriter.flush(PrintWriter.java:396)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.closeResponseOutput(SRTServletResponse.java:495)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.closeResponseOutput(SRTServletResponse.java:442)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1537)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:171)
at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:790)....

I will attach traces from a run where it fails and passes so you can compare.
trace4NoFlushError.zip
trace5FlushError.zip

@dettmoney dettmoney added release bug This bug is present in a released version of Open Liberty team:Sirius in:Transport labels Oct 31, 2018
@dettmoney
Copy link
Member Author

I'm using webProfile-8.0 in the server.xml, running on the 1020-2100 18.0.0.4 build for the traces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Transport release bug This bug is present in a released version of Open Liberty release-18.0.0.4 team:Sirius
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants