RE: Uploading large files

2016-02-26 Thread Pottinger, Hardy J.
___ From: Baldur Dae [baldur@gmail.com] Sent: Friday, February 26, 2016 4:52 PM To: Tomcat Users List Subject: Re: Uploading large files Hi Chris! Thank you so much for your quick response. I'll have a look and I'll come back here with my progress. 2016-02-26 17:30 GMT+01:00 Christopher Schul

Re: Uploading large files

2016-02-26 Thread Baldur Dae
Hi Chris! Thank you so much for your quick response. I'll have a look and I'll come back here with my progress. 2016-02-26 17:30 GMT+01:00 Christopher Schultz : > Baldur, > > On 2/25/16 4:44 PM, Baldur Dae wrote: > > I have a Primefaces webapp which lets users upload files up to 50MB and > >

Re: Uploading large files

2016-02-26 Thread Christopher Schultz
Baldur, On 2/25/16 4:44 PM, Baldur Dae wrote: > I have a Primefaces webapp which lets users upload files up to 50MB and > saves posted files into Alfresco (located in another tomcat machine). I've > successfully configured it to avoid Heap exceptions but it is very slow > and has a huge impact

Uploading large files

2016-02-25 Thread Baldur Dae
Hi all, I have a Primefaces webapp which lets users upload files up to 50MB and saves posted files into Alfresco (located in another tomcat machine). I've successfully configured it to avoid Heap exceptions but it is very slow and has a huge impact in CPU load. Basically, the configuration ha

Re: Uploading Large Files in Tomcat 8.0.9+

2014-09-02 Thread Clint Shank
Setting maxSwallowSize="-1" worked. I didn't need maxPostSize at all. Thanks Konstantin. On Fri, Aug 29, 2014 at 2:52 PM, Konstantin Kolinko wrote: > 2014-08-29 20:19 GMT+04:00 Clint Shank : > > I was wondering whether anyone out there is seeing a problem uploadi

Re: Uploading Large Files in Tomcat 8.0.9+

2014-08-29 Thread Konstantin Kolinko
2014-08-29 20:19 GMT+04:00 Clint Shank : > I was wondering whether anyone out there is seeing a problem uploading > large files using Tomcat 8.0.9 and greater (same issue in 8.0.11). > > The context is that I'm running Sonatype Nexus in Tomcat. When I do an > "mvn dep

Uploading Large Files in Tomcat 8.0.9+

2014-08-29 Thread Clint Shank
I was wondering whether anyone out there is seeing a problem uploading large files using Tomcat 8.0.9 and greater (same issue in 8.0.11). The context is that I'm running Sonatype Nexus in Tomcat. When I do an "mvn deploy" on a smaller project, things work. We I do a "mv

Re: Uploading large files

2013-05-29 Thread Mark Eggers
On 5/29/2013 1:29 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 5/29/13 2:00 PM, Mark Eggers wrote: On 5/29/2013 10:48 AM, Mohit Anchlia wrote: I am looking for a general advice on uploading large files. I am currently thinking that we do it on our

Re: Uploading large files

2013-05-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 5/29/13 2:00 PM, Mark Eggers wrote: > On 5/29/2013 10:48 AM, Mohit Anchlia wrote: >> I am looking for a general advice on uploading large files. I am >> currently thinking that we do it on our API and have clients >>

Re: Uploading large files

2013-05-29 Thread Mark Eggers
On 5/29/2013 10:48 AM, Mohit Anchlia wrote: I am looking for a general advice on uploading large files. I am currently thinking that we do it on our API and have clients chunk it in multiple pieces and send it to the server. I could try http chunk based transfer but only think I am unsure of is

Uploading large files

2013-05-29 Thread Mohit Anchlia
I am looking for a general advice on uploading large files. I am currently thinking that we do it on our API and have clients chunk it in multiple pieces and send it to the server. I could try http chunk based transfer but only think I am unsure of is if on the server the entire content is going

Re: Problem with uploading large files

2012-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sahana, On 8/22/12 10:31 AM, Sahana Voleti wrote: > Yes. I have tried with Chrome and Opera David. Firefox n Explorer > just fail instantly after looking at the file size over 2GB. FF has a (recently-fixed) bug where it cannot properly upload files l

Re: Problem with uploading large files

2012-08-22 Thread Konstantin Kolinko
2012/8/22 Sahana Voleti : > Sir, > despite trying configuring in access log valves if the same error message > persists then there must be some bug. The access log valve would not fix an error for you. It is there to help you diagnose one. Back to basics: do you know how file upload works? What

Re: Problem with uploading large files

2012-08-22 Thread Sahana Voleti
Yes. I have tried with Chrome and Opera David. Firefox n Explorer just fail instantly after looking at the file size over 2GB. On Wed, Aug 22, 2012 at 7:58 PM, David kerber wrote: > Bug, yes, but it sounds to me like the bug is more likely on the client > end, since the common component of the f

Re: Problem with uploading large files

2012-08-22 Thread David kerber
Bug, yes, but it sounds to me like the bug is more likely on the client end, since the common component of the failing test is the windows client; the server side seems to be fine on both Windows and Linux. Have you tried different browsers on the windows machine yet? On 8/22/2012 10:16 AM,

Re: Problem with uploading large files

2012-08-22 Thread Sahana Voleti
Sir, despite trying configuring in access log valves if the same error message persists then there must be some bug. It beautifully uploads from a Linux to a windows and Linux machine to linux machine(for over 10GB file size) but using windows machine as a client it just doesn't upload files above

Re: Problem with uploading large files

2012-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sahana, On 8/21/12 9:49 AM, Sahana Voleti wrote: > I have tried all the techniques that we have discussed and yet I > get the following error: > > org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: > > Processing o > f multipart/for

Re: Problem with uploading large files

2012-08-21 Thread Sahana Voleti
I have tried all the techniques that we have discussed and yet I get the following error: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing o f multipart/form-data request failed. Stream ended unexpectedly org.apache.commons.fileupload.FileUploadBase$IOFileUploadExcept

Re: Problem with uploading large files

2012-08-20 Thread Sahana Voleti
can you give me a sample code using content length? On Mon, Aug 20, 2012 at 5:38 PM, Konstantin Kolinko wrote: > 2012/8/20 Sahana Voleti : > > The documentation is fine but how do you use content length there? > > > > I am logging the value of the "content-length" header. > > What that header mea

Re: Problem with uploading large files

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Sahana Voleti : > The documentation is fine but how do you use content length there? > I am logging the value of the "content-length" header. What that header means is defined in the HTTP protocol specification. > On Mon, Aug 20, 2012 at 5:10 PM, Sahana Voleti > wrote: > >> Is there a

Re: Problem with uploading large files

2012-08-20 Thread Sahana Voleti
The documentation is fine but how do you use content length there? On Mon, Aug 20, 2012 at 5:10 PM, Sahana Voleti wrote: > Is there any size limitations fr this apache commons upload? Also is there > any standalone application I can use? > I think there is some problem in parsing because of which

Re: Problem with uploading large files

2012-08-20 Thread Sahana Voleti
Is there any size limitations fr this apache commons upload? Also is there any standalone application I can use? I think there is some problem in parsing because of which I am getting multipart/formdata request failed. On Mon, Aug 20, 2012 at 5:03 PM, Konstantin Kolinko wrote: > 2012/8/20 Sahana

Re: Problem with uploading large files

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Sahana Voleti : > Konstantin Kolinko, > U mentioned these steps in your mail: > 1. Read documentation for AccessLogValve. > 2. Use a text editor to edit server.xml file (for the global access > log) or the META-INF/context.xml file of your web application (for > your webapp's access log).

Re: Problem with uploading large files

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Sahana Voleti : > Also in my localhost logs in tomcat 7.0.29. It is logging like this: > 192.168.2.67 - - [20/Aug/2012:13:32:20 +0530] "(¬û>Ñ¿¿?? «ÊR˱{fÔb²¹? æè > 5í?&º Ù³,µj\­< ´?? }b y* Ý?ÀB5ÅÖ8añ¹¶i? ùÇ Z;?ÐÀû#pÌ8 >>ûæ ý5Å *1éIEWç?[?Y°U?ïs,5tÕù )?WÆ?iU¼??/µ£kîUð$?+º&05­ > | 7Î ¾ÒL«W

Re: Problem with uploading large files

2012-08-20 Thread Sahana Voleti
about 10GB) using >> > the Apache commons upload. I have followed the steps properly, >> > increased the java heap size and the maxPostSize in tomcat (I am >> > using tomcat version 7.0.29). Also I am using Windows XP , 2GB RAM >> > machine. >> >> I&#

Re: Problem with uploading large files

2012-08-19 Thread Sahana Voleti
AM > > machine. > > I'm curious as to why you changed your heap settings? If you are > uploading large files, you ought to be using disk-based data caching > so you don't need a big heap. > > What did you set your heap size to? > > - -chris > -BEGIN PGP SI

Re: Problem with uploading large files

2012-08-17 Thread Christopher Schultz
cat (I am > using tomcat version 7.0.29). Also I am using Windows XP , 2GB RAM > machine. I'm curious as to why you changed your heap settings? If you are uploading large files, you ought to be using disk-based data caching so you don't need a big heap. What did you set you

Re: Problem with uploading large files

2012-08-17 Thread Sahana Voleti
ailto:knst.koli...@gmail.com] > Sent: Viernes, 17 de Agosto de 2012 08:56 a.m. > To: Tomcat Users List > Subject: Re: Problem with uploading large files > > 2012/8/17 Sahana Voleti : > > Konstantin Kolinko, > > You mentioned the following in your mail: > > "Yo

RE: Problem with uploading large files

2012-08-17 Thread Cosio, Raul
I wonder if you are downloading to a FAT formattted drive which has a limit of 4GB per file. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Viernes, 17 de Agosto de 2012 08:56 a.m. To: Tomcat Users List Subject: Re: Problem with uploading large files

Re: Problem with uploading large files

2012-08-17 Thread Konstantin Kolinko
2012/8/17 Sahana Voleti : > Konstantin Kolinko, > You mentioned the following in your mail: > "You can add the following: "%{content-length}i" to your Access Log > Valve configuration to log the Content-Length header of the incoming > request." > Can you elaborate as to how to make this change. 1.

Re: Problem with uploading large files

2012-08-17 Thread Sahana Voleti
Konstantin Kolinko, You mentioned the following in your mail: "You can add the following: "%{content-length}i" to your Access Log Valve configuration to log the Content-Length header of the incoming request." Can you elaborate as to how to make this change. Regards, Sahana On Fri, Aug 17, 2012 at

Re: Problem with uploading large files

2012-08-17 Thread Sahana Voleti
Ognjen Blagojevic , Konstantin Kolinko, By unsuccessful I mean that the file fails to upload. Following the Apache commons upload guidelines, the data first comes in chunks into a temp directory and after all the data is collected there it saves it in the permanent directory. In my case, data comes

Re: Problem with uploading large files

2012-08-17 Thread Konstantin Kolinko
2012/8/17 Sahana Voleti : > Hello list, > > I am trying to upload really large files (size about 10GB) using > the Apache commons upload. I have followed the steps properly, increased > the java heap size and the maxPostSize in tomcat (I am using tomcat version > 7.0.29). Also I am using Wind

Re: Problem with uploading large files

2012-08-17 Thread Ognjen Blagojevic
Sahana, On 17.8.2012 14:33, Sahana Voleti wrote: I am trying to upload really large files (size about 10GB) using the Apache commons upload. I have followed the steps properly, increased the java heap size and the maxPostSize in tomcat (I am using tomcat version 7.0.29). Also I am using W

Problem with uploading large files

2012-08-17 Thread Sahana Voleti
Hello list, I am trying to upload really large files (size about 10GB) using the Apache commons upload. I have followed the steps properly, increased the java heap size and the maxPostSize in tomcat (I am using tomcat version 7.0.29). Also I am using Windows XP , 2GB RAM machine. Here is wha

Re: Uploading large files and session timeout

2011-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 7/11/2011 4:54 PM, André Warnier wrote: > I think that you need to scroll back in this thread (to July 8), and > re-read an answer which Charles provided to a previous question of > mine. > > A partial answer resides in this property, whic

Re: Uploading large files and session timeout

2011-07-11 Thread André Warnier
Sai Pullabhotla wrote: A little more info on the org.apache.catalina.session.StandardSession.ACTIVITY_CHECK system property: The last time I said that the above property is keeping the session alive, I was only partially correct. The way it is working is - session is kept alive for the duration

Re: Uploading large files and session timeout

2011-07-11 Thread Sai Pullabhotla
I agree. At this point, I'm not so concerned about the Firefox issue. I will start a separate thread on it later. I still would like to get some help on keeping the session alive for the duration of the configured timeout, after a response is sent for a large request. Any ideas will be greatly appr

Re: Uploading large files and session timeout

2011-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 7/11/2011 3:59 PM, André Warnier wrote: > It seems like there are two quite different issues/discussions going > on in this same thread, with the same subject line. It is a bit > confusing, even if originally they relate to the same problem.

Re: Uploading large files and session timeout

2011-07-11 Thread André Warnier
It seems like there are two quite different issues/discussions going on in this same thread, with the same subject line. It is a bit confusing, even if originally they relate to the same problem. Would it not be better to split this ? -

Re: Uploading large files and session timeout

2011-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sai, On 7/11/2011 9:29 AM, Sai Pullabhotla wrote: > I took the threaddump and found that Tomcat's http service thread is > still blocked on the read from the client after we called the > forward method. At least, that's how I interpreted this, but be

Re: Uploading large files and session timeout

2011-07-11 Thread Sai Pullabhotla
A little more info on the org.apache.catalina.session.StandardSession.ACTIVITY_CHECK system property: The last time I said that the above property is keeping the session alive, I was only partially correct. The way it is working is - session is kept alive for the duration of the upload. The respo

Re: Uploading large files and session timeout

2011-07-11 Thread Sai Pullabhotla
Thanks, Chris! I took the threaddump and found that Tomcat's http service thread is still blocked on the read from the client after we called the forward method. At least, that's how I interpreted this, but below is the particular thread's dump: "http-443-1" daemon prio=6 tid=0x4c20b000 n

Re: Uploading large files and session timeout

2011-07-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sai, On 7/9/2011 8:55 AM, Sai Pullabhotla wrote: > I added the system property > org.apache.catalina.session.StandardSession.ACTIVITY_CHECK and set > it to true, and it appears to be preventing the session timeout. Glad to see it's working out for y

Re: Uploading large files and session timeout

2011-07-09 Thread Sai Pullabhotla
e: >> From: André Warnier [mailto:a...@ice-sa.com] >> Subject: Re: Uploading large files and session timeout > >> The do this cleanly, the servlet would need to call >> HttpSession.getMaxInactiveInterval() at the beginning, >> to save the existing value, then cal

RE: Uploading large files and session timeout

2011-07-08 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Uploading large files and session timeout > The do this cleanly, the servlet would need to call > HttpSession.getMaxInactiveInterval() at the beginning, > to save the existing value, then call > HttpSession.setM

Re: Uploading large files and session timeout

2011-07-08 Thread André Warnier
Caldarale, Charles R wrote: From: Sai Pullabhotla [mailto:sai.pullabho...@jmethods.com] Subject: Re: Uploading large files and session timeout As far as I know, the session's lastAccessTime gets updated on each request from the client (by the container), and there is no public API to u

RE: Uploading large files and session timeout

2011-07-08 Thread Caldarale, Charles R
> From: Sai Pullabhotla [mailto:sai.pullabho...@jmethods.com] > Subject: Re: Uploading large files and session timeout > As far as changing the session timeout from the servlet, I do not > think it works well when multiple uploads are going simultaneously > under one session,

Re: Uploading large files and session timeout

2011-07-08 Thread Sai Pullabhotla
o offer. Sai Pullabhotla On Fri, Jul 8, 2011 at 2:20 PM, Caldarale, Charles R wrote: >> From: Sai Pullabhotla [mailto:sai.pullabho...@jmethods.com] >> Subject: Re: Uploading large files and session timeout > >> As far as I know, the session's lastAccessTime gets updated o

Re: Uploading large files and session timeout

2011-07-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sai, On 7/8/2011 10:25 AM, Sai Pullabhotla wrote: > If the upload takes longer then the session timeout, the session gets > invalidated right after the upload. Tis means no further requests are > accepted unless the user logs back in. Is this the expe

Re: Uploading large files and session timeout

2011-07-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 7/8/2011 3:20 PM, Caldarale, Charles R wrote: >> From: Sai Pullabhotla [mailto:sai.pullabho...@jmethods.com] >> Subject: Re: Uploading large files and session timeout > >> As far as I know, the session's last

RE: Uploading large files and session timeout

2011-07-08 Thread Caldarale, Charles R
> From: Sai Pullabhotla [mailto:sai.pullabho...@jmethods.com] > Subject: Re: Uploading large files and session timeout > As far as I know, the session's lastAccessTime gets updated on each > request from the client (by the container), and there is no public API > to update

Re: Uploading large files and session timeout

2011-07-08 Thread Thad Humphries
gt;> We have an application that uploads files using a Servlet deployed in > >> Tomcat 6. While this works most of the times, occasionally we run into > >> issues uploading large files. If the upload takes longer then the > >> session timeout, the session gets inva

Re: Uploading large files and session timeout

2011-07-08 Thread Sai Pullabhotla
: >> >> We have an application that uploads files using a Servlet deployed in >> Tomcat 6. While this works most of the times, occasionally we run into >> issues uploading large files. If the upload takes longer then the >> session timeout, the session gets invalidated right af

Re: Uploading large files and session timeout

2011-07-08 Thread Thad Humphries
ile this works most of the times, occasionally we run into > issues uploading large files. If the upload takes longer then the > session timeout, the session gets invalidated right after the upload. > Tis means no further requests are accepted unless the user logs back > in. Is this the

Re: Uploading large files and session timeout

2011-07-08 Thread André Warnier
Sai Pullabhotla wrote: We have an application that uploads files using a Servlet deployed in Tomcat 6. While this works most of the times, occasionally we run into issues uploading large files. If the upload takes longer then the session timeout, the session gets invalidated right after the

Uploading large files and session timeout

2011-07-08 Thread Sai Pullabhotla
We have an application that uploads files using a Servlet deployed in Tomcat 6. While this works most of the times, occasionally we run into issues uploading large files. If the upload takes longer then the session timeout, the session gets invalidated right after the upload. Tis means no further