tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Singer <Michal.Sin...@expand.com>
Subject RE: fail to download large static files in tomcat
Date Thu, 30 Jun 2011 11:14:52 GMT
1. Currently tomcat runs on windows XP (but production can be on other windows as well).
The client is on linux.

2. Tomcat version 6.0.18

3. These are the lines in log regarding connector. The lines concerning the connectors I am
referring to are moved aside to the right (ports 8088 and 8089)


Jun 30, 2011 2:11:31 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-443
Jun 30, 2011 2:11:31 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Jun 30, 2011 2:11:31 PM org.apache.coyote.http11.Http11NioProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 30, 2011 2:11:31 PM org.apache.coyote.http11.Http11Protocol init
													INFO: Initializing Coyote HTTP/1.1 on http-8088
													Jun 30, 2011 2:11:31 PM org.apache.tomcat.util.net.NioSelectorPool 									
				getSharedSelector
													INFO: Using a shared selector for servlet write/read
													Jun 30, 2011 2:11:31 PM org.apache.coyote.http11.Http11NioProtocol init
													INFO: Initializing Coyote HTTP/1.1 on http-8089
													Jun 30, 2011 2:11:31 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Jun 30, 2011 2:11:31 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Jun 30, 2011 2:11:31 PM org.apache.coyote.http11.Http11NioProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-9080
Jun 30, 2011 2:11:31 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9443
Jun 30, 2011 2:11:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 34490 ms
Jun 30, 2011 2:11:32 PM org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
Jun 30, 2011 2:11:32 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 30, 2011 2:11:32 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18


-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: ה 30 יוני 2011 14:06
To: Tomcat Users List
Subject: Re: fail to download large static files in tomcat

Ok, so now can you remind us of
- on what platform you are (Windows, Linux,..)
- what version of Tomcat this is
- and paste the first few lines of the Tomcat startup messages, from the logfile
(to find out whether you are using APR or not)

Sorry if you already said all that, I'm too lazy to scroll back through the messages.


Michal Singer wrote:
> This was the configuration I had in the server.xml which did not work for large files:
> 
> <Connector executor="AgentExecutor" port="8088" protocol="org.apache.coyote.http11.Http11NioProtocol"
SSLEnabled="false" scheme="http" secure="false" redirectPort="8080" connectionTimeout="2000"
enableLookups="false" disableUploadTimeout="true" allowTrace="false" maxKeepAliveRequests="1"
processorCache="800" acceptorThreadCount="1" />
> 
> And I changed this to:
> <Connector executor="AgentExecutor" port="8088" protocol="HTTP/1.1" SSLEnabled="false"
scheme="http" secure="false" redirectPort="8080" connectionTimeout="2000" enableLookups="false"
disableUploadTimeout="true" allowTrace="false" maxKeepAliveRequests="1" processorCache="800"
acceptorThreadCount="1" />
> 
> And now it does work for 500MB files, though when comparing the time it takes (for smaller
files which work on both configurations),
> the performance degraded with the HTTP/1.1 connector. So of course, I prefer it to work
on nio.
> 
> 
> 
> 
> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com] 
> Sent: ה 30 יוני 2011 13:30
> To: Tomcat Users List
> Subject: Re: fail to download large static files in tomcat
> 
> Michal Singer wrote:
> ...
>> I am using nio connector.
>> Actually this was a very good question. I changed the connector to HTTP/1.1 and now
the download works !!!
> 
> Can you exlain *exactly* what you changed, where ?
> e.g. what the <Connector> element looked like before, and what it looks like now
?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Mime
View raw message