I didn't want to upgrade the tomcat yet, since I had some problems with the ssl certificate after upgrade, so it might take a while until I succeed. Do you mean to upgrade to 7 or to more advanced builds of 6? Which do you recommend?
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 !!! Thank you very much. I don't understand why the nio does not work. -----Original Message----- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: ה 30 יוני 2011 12:42 To: Tomcat Users List Subject: Re: fail to download large static files in tomcat > Hi, I am working with apache-tomcat-6.0.18 and I want to use it to download > static files. > I have clients which will contact tomcat using wget. 1) Try with an up-to-date version of Tomcat. It will be 3 years old in a month. There were a lot of fixes since then. E.g. 48843. It might be that you are facing some timeout. There are better changes with more recent versions. 2) What exactly connector implementation do you use? Bio(Jio)/ Nio / Apr? It should be visible in the logs when Tomcat starts. > 10.206.90.6 - - [30/Jun/2011:11:37:16 +0300] "GET > /bundles/vacc-AOS701b318-fl.tgz HTTP/1.0" 200 - 3) It should not matter much, but most clients will use HTTP/1.1 (The last one that I encountered was old IE 6 with "Use HTTP/1.0 through proxy" flag). 4) There might be proxies between you and client that will close the connection. 2011/6/30 Michal Singer <michal.sin...@expand.com>: > Hi, I also want to add that when I check the tomcat access log, I get: > 10.206.90.6 - - [30/Jun/2011:11:37:16 +0300] "GET > /bundles/vacc-AOS701b318-fl.tgz HTTP/1.0" 200 - > On the large file, the client receives error. > How can this be? Is this a problem with the client? Though I tried other > clients and it didn't work as well. And also ftp works fine. > > Thanks, Michal > > > -----Original Message----- > From: Michal Singer > Sent: ה 30 יוני 2011 09:39 > To: Tomcat Users List > Subject: RE: fail to download large static files in tomcat > > Hi, > > I tried defining the useSendFile - it did not help in transferring a 500MB > file. Any other ideas what can get wrong, which configuration I need for the > big file to be loaded successfully? > > Thanks, Michal > > -----Original Message----- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: ג 28 יוני 2011 15:51 > To: Tomcat Users List > Subject: RE: fail to download large static files in tomcat > >> From: Michal Singer [mailto:michal.sin...@expand.com] >> Subject: RE: fail to download large static files in tomcat > >> From the tomcat documentation I read this useSendFile is default >> to true and it is defined under nio. > > This is correct; NIO does support sendfile, as does APR. > >> As I mentioned before, I am defining the static context >> under Engine->Host->Context: > > Which is not recommended, since you're modifying server.xml for a specific > webapp. Better to place the <Context> element in > conf/Catalina/[host]/bundles.xml, with just a docBase attribute. I'd > recommend using an absolute path for docBase, since a relative one is > dependent on how you start Tomcat. > >> This does not correspond to a specific connector > > Requests received over a <Connector> with useSendfile set will be processed > with sendfile, those received on a <Connector> without sendfile capability > won't use it. If you use the NIO class for all of your HTTP or HTTPS > <Connector> elements, you'll get sendfile by default. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org