commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [IO] IOUtils.copy() never completes
Date Tue, 21 Jul 2009 16:45:53 GMT
On 06/07/2009, Will Glass-Husain <wglasshusain@gmail.com> wrote:
> Hi,
>
>  I have a simple servlet that takes an image file from Jackrabbit and
>  sends it to the end user.
>
>  My servlet retrieves a stream and the uses IOUtils.copy() to send it
>  to the output stream.
>
>  I'm seeing a number of stuck threads in the Tomcat manager where the
>  request never completes.  Any suggestions on where I might start
>  looking?
>
>  Partial stack trace is below.

Does not look like a problem in IOUtils; looks like the OutputStream is blocked.
I suggest asking on the Tomcat user list instead.

>  Thanks in advance for any ideas.
>
>  WILL
>
>
>  Name: ajp-8009-1
>  State: RUNNABLE
>  Total blocked: 56  Total waited: 1,111
>
>  Stack trace:
>  org.apache.tomcat.jni.Socket.sendbb(Native Method)
>  org.apache.coyote.ajp.AjpAprProcessor.flush(AjpAprProcessor.java:1184)
>  org.apache.coyote.ajp.AjpAprProcessor$SocketOutputBuffer.doWrite(AjpAprProcessor.java:1271)
>  org.apache.coyote.Response.doWrite(Response.java:560)
>  org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)
>  org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
>  org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
>  org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
>  org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)
>  org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
>  org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1026)
>  org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
>  com.forio.broadcast.controller.view.ImageView.renderMergedOutputModel(ImageView.java:29)
>  org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
>  org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
>  org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
>  org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
>  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
>  org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>  For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message