-
1. Re: file size limit for downloading from a JBoss server?
mikefinnx Mar 12, 2010 9:07 PM (in response to jimsch)Jim,
What is failing - the write of the file to the filesystem, or the actual delivery of the file through Tomcat (assuming Tomcat is the means here) to the client? Any sample code you can share? Never heard of a filesize limit.
Mike
-
2. Re: file size limit for downloading from a JBoss server?
jimsch Mar 13, 2010 9:29 AM (in response to mikefinnx)Hi Mike,
Thanks for your question. The problem is now solved. Apologies - I should have updated the thread but got side-tracked.
It turned out I needed to add a setting to my server.xml file in
jboss\server\default\deploy\jboss-web.deployer
The setting I needed was useSendFile="false" in
my connector.The connector now reads
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true"
protocol="org.apache.coyote.http11.Http11NioProtocol"
enableLookups="false" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
compressableMimeType="text/html,text/css,text/xml,text/plain,application
/json,text/javascript"
compressionMinSize="300" compression="on" useSendfile="false" />
Reading this thread
http://www.mail-archive.com/users@tomcat.apache.org/msg51465.html//www.mail-archive.com/users@tomcat.apache.org/msg51465.html
it seems that I must have been hitting the limit of my kernel memory.I think then that setting useSendfile="false" ensures that all files, regardless of size, can be downloaded but that
files that could have already been downloaded with the default useSendfile="true" may take that little bit longer.
Best wishes,
Jim