RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Williams, Nick
> The way Tomcat is apparently doing it now is much more sensible, in my humble > opinion, because it does allow a direct and easy comparison with the files > being uploaded. > And since as per above it needs to be kept in some cases anyway, my vote - if > I had one - would be to not change it.

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread André Warnier
Mark Thomas wrote: On 14/12/2012 21:13, André Warnier wrote: If it's "multipart/form-data", it delegates to another method, parseParts(). Why the Content-Length is not checked, I am unsure. It seems it would be less expensive to throw the exception before ever trying to parse the parts

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Mark Thomas
On 14/12/2012 21:13, André Warnier wrote: > If it's "multipart/form-data", it delegates to another method, > parseParts(). > Why the Content-Length is not checked, I am unsure. It seems it would > be less expensive to throw the exception before ever trying to parse the > parts. However, thi

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Williams, Nick
> If it was using the global Content-length header, it would count not only the > encoded data bytes, but also the parts separators, headers etc.. > So that's nice. It counts only the net data bytes, which is easier to compare > to the size on disk of a file that you would upload. Indeed. A gre

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Williams, Nick
A valid point that I have not considered. Since parseParameters() is not called until you get the request parameters or parts, a developer could getInputStream() and parse all the parts/parameters themselves, thereby completely skipping the maxPostSize checks. Thanks for correcting me here, Mark

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Mark Thomas
On 14/12/2012 19:58, Williams, Nick wrote: > (Note: It's entirely possible that I'm reading the code wrong. Yes you are. Not completely wrongly but there are errors. The short version is as follows: If Tomcat is responsible for reading the request body such as via a call to a method like getPara

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread André Warnier
Williams, Nick wrote: So I read some code in org.apache.catalina.connector.Request.java. When parseParameters() is called, it checks whether the Content-Type is "multipart/form-data" or "application/x-www-form-urlencoded". If it's "application/x-www-form-urlencoded", it checks to make sure tha

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Williams, Nick
So I read some code in org.apache.catalina.connector.Request.java. When parseParameters() is called, it checks whether the Content-Type is "multipart/form-data" or "application/x-www-form-urlencoded". If it's "application/x-www-form-urlencoded", it checks to make sure that the Content-Length is

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 12/14/12 12:38 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Does maxPostSize has an effect on file upload? Does a file upload as multipart/form-

Re: Tomcat 6.0 - http client

2012-12-14 Thread vicky
Thanks guys for responding, from network side there are no issues infact as confirmed by our Network team   I am accessing my application over http port, i seek your advise on tunning my http client with respect to my tomcat   1>>We're using MultiThreadedHttpConnectionManager, In this do you guys

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 12/14/12 12:38 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Does maxPostSize has an effect on file upload? > Does a file upload as multipart/form-data not count t

Re: Data sources definitions are lost in memory

2012-12-14 Thread Robert Anderson
Hi, We've found a suspect application: [root@tomcat3 webapps]# locate fscontext.jar /usr/java/tomcat/webapps/ebookapp/WEB-INF/lib/fscontext.jar [root@tomcat3 lib]# jar -tf /usr/java/tomcat/webapps/ebookapp/WEB-INF/lib/fscontext.jar META-INF/ META-INF/MANIFEST.MF com/sun/jndi/fscontext/ com/sun/jn

Re: Tomcat 6.0 - http client

2012-12-14 Thread Hassan Schroeder
On Fri, Dec 14, 2012 at 9:23 AM, Christopher Schultz wrote: >>> I am facing response latency issue when i am invoking the web >>> service call ( deployed on tomcat 6.x) from an http client. >> Maybe your webservice is just really slow? > Usually, network latency can be separated from all other

RE: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Does maxPostSize has an effect on file upload? > > > Does a file upload as multipart/form-data not count to the size > > > of the POST? > > No, as the doc make clear. > I'm not so sure the docs make it clear. I th

Re: Data sources definitions are lost in memory

2012-12-14 Thread Robert Anderson
Hi Christopher, I'm suspecting that some webapp is causing this problem, because nothing has changed neither in JVM nor Tomcat (I'm a sysadmin in this company). We will investigate each application looking for suspects JARs (Developers have access to webapp directory and can deploy applications wi

Re: Tomcat 6.0 - http client

2012-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Pid, On 12/14/12 11:10 AM, Pid wrote: > On 14/12/2012 11:03, vicky007aggar...@yahoo.co.in wrote: >> Hello Guys, >> >> I am facing response latency issue when i am invoking the web >> service call ( deployed on tomcat 6.x) from an http client. >>

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/13/12 10:27 AM, Mark Thomas wrote: > > > Kai Weber wrote: > >> I see the following behaviour on Tomcat 6.0.24: >> >> The maxPostSize is not set, so uses the default of 2MB. I can >> upload files bigger than 2MB (5MB for example). I

Re: Data sources definitions are lost in memory

2012-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Robert, On 12/13/12 3:34 PM, Robert Anderson wrote: > Caused by: java.lang.ClassNotFoundException: > com.sun.jndi.fscontext.RefFSContextFactory In my Oracle 1.7.0 JRE's rt.jar, I can find a few JNDI ContextFactory classes, but not this one. I look

Re: Tomcat uses only a single Core

2012-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 To whom it may concern, On 12/13/12 2:44 PM, spr...@gmx.eu wrote: > I have an application running on Tomcat 7 on a 8-Core Linux 64 bit > System. > > Unfortunately it uses only a single core. I have googled alot about > this fact but did not found a

Re: Tomcat 6.0.35, PersistentManager with FileStore - Session file size increases endlessly

2012-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nico, On 12/13/12 4:29 AM, Nico Peters wrote: > First, some information to our setup: Manager configuration? > We have recognized an unusually high number of disk operations on > one of our servers and investigated the origin. We found out that >

Re: Tomcat 6.0 - http client

2012-12-14 Thread Pid
On 14/12/2012 11:03, vicky007aggar...@yahoo.co.in wrote: > Hello Guys, > > I am facing response latency issue when i am invoking the web service call ( > deployed on tomcat 6.x) from an http client. > > Can some body please share /let me know what are recommended configuration > settings which

Tomcat 6.0 - http client

2012-12-14 Thread vicky007aggarwal
Hello Guys, I am facing response latency issue when i am invoking the web service call ( deployed on tomcat 6.x) from an http client. Can some body please share /let me know what are recommended configuration settings which i need to take care of at the http client & at the tomcat level. I gue

Re: Does maxPostSize has an effect on file upload?

2012-12-14 Thread Kai Weber
* Mark Thomas : > >Does a file upload as multipart/form-data not count to the size of the > >POST? > > No, as the doc make clear. I asked because I could not find a hint in the docs or the INTERNET. What doc do you mean? I looked into http://tomcat.apache.org/tomcat-6.0-doc/config/http.html for