commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Glass-Husain <wglasshus...@gmail.com>
Subject [IO] IOUtils.copy() never completes
Date Mon, 06 Jul 2009 16:24:59 GMT
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.

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


Mime
View raw message