You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jamie <ja...@stimulussoft.com> on 2015/11/04 15:20:47 UTC
Trouble downloading large file (>1GB)
Greetings
We are using Apache Tomcat Version 7.0.59. We have received downloads
from our servlet greater than 1GB in size complete prematurely. Smaller
files are no problem. All data is streamed so no OME occurs. We tried
increasing the connection timeout on the connector, but it made no
difference. This looks to be a Tomcat related issue. There is no any
specific error reported in the Tomcat logs. The download completes short
of the actual file size.
The connector is defined as follows:
<Connector connectionTimeout="20000" port="8090"
protocol="org.apache.coyote.http11.Http11NioProtocol"
redirectPort="8443" URIEncoding="UTF-8" compression="on"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/css,text/plain,application/javascript,application/json"
enableLookups="false" disableUploadTimeout="true" />
Any ideas, on what might be the cause?
Jamie
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Trouble downloading large file (>1GB)
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Jamie,
On 11/4/15 9:20 AM, jamie wrote:
> We are using Apache Tomcat Version 7.0.59. We have received downloads
> from our servlet greater than 1GB in size complete prematurely. Smaller
> files are no problem. All data is streamed so no OME occurs.
OME?
> We tried increasing the connection timeout on the connector, but it
> made no difference.
The connection timeout here isn't relevant.
> This looks to be a Tomcat related issue. There is no any
> specific error reported in the Tomcat logs. The download completes short
> of the actual file size.
Nothing at all in the logs?
> The connector is defined as follows:
>
> <Connector connectionTimeout="20000" port="8090"
> protocol="org.apache.coyote.http11.Http11NioProtocol"
> redirectPort="8443" URIEncoding="UTF-8" compression="on"
> noCompressionUserAgents="gozilla, traviata"
> compressableMimeType="text/html,text/xml,text/css,text/plain,application/javascript,application/json"
> enableLookups="false" disableUploadTimeout="true" />
>
> Any ideas, on what might be the cause?
What code on the server side is serving this resource? Is it the
DefaultServlet (static file) or some code you wrote?
What happens if you disable compression?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org