Re: question on different version of tomcat running on the same pc

2014-08-22 Thread Neven Cvetkovic
On Thu, Aug 21, 2014 at 9:40 PM, David Kerber dcker...@verizon.net wrote: On 8/21/2014 6:18 PM, André Warnier wrote: Now all that's left to do is for someone to make a version of this that works for installing and starting the same as Windows Services. Despite what Christopher wrote - which

Re: Long Polling : Tomcat 7.0.50 / 8.0.9

2014-08-22 Thread Mark Thomas
On 22/08/2014 06:03, anurag gupta wrote: Hi All, I'm trying to implement long polling using the servlet 3.0 spec. Implementation wise it's done and works fine in tomcat. The problem occurs when it is under load, for eg. when we send just 100,000 requests we see weird behaviour like

Re: Long Polling : Tomcat 7.0.50 / 8.0.9

2014-08-22 Thread anurag gupta
Thanks Mark. The same application is running in a jetty9 server. And I ran a test for 5 hours with 300,000 requests (moving window of 9mins) with 10g of heap. Jetty didn't crash with OOM. So I guess my application is not the source of OOM. I'm currently using tomcat 7.0.50 in production and it

Re: How can I analog this bug to my colleague

2014-08-22 Thread Mark Thomas
On 22/08/2014 03:31, ?? wrote: I read an article on the internet that says that Tomcat was found to accept content-length headers with chunked encoding over any HTTP connector and multiple content-length headers in a request when using the AJP connector. This could allow attackers

Re: Long Polling : Tomcat 7.0.50 / 8.0.9

2014-08-22 Thread Mark Thomas
On 22/08/2014 09:47, anurag gupta wrote: Thanks Mark. The same application is running in a jetty9 server. And I ran a test for 5 hours with 300,000 requests (moving window of 9mins) with 10g of heap. Jetty didn't crash with OOM. So I guess my application is not the source of OOM. I

Re: Long Polling : Tomcat 7.0.50 / 8.0.9

2014-08-22 Thread anurag gupta
Executors:- Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=2048 minSpareThreads=1024 maxQueueSize=1 prestartminSpareThreads=true/ This is the connector config :- Connector port=8080 protocol=org.apache.coyote.http11.Http11NioProtocol redirectPort=8443

Re: Long Polling : Tomcat 7.0.50 / 8.0.9

2014-08-22 Thread Mark Thomas
On 22/08/2014 11:22, anurag gupta wrote: Executors:- Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=2048 minSpareThreads=1024 maxQueueSize=1 prestartminSpareThreads=true/ This is the connector config :- Connector port=8080

Re: Long Polling : Tomcat 7.0.50 / 8.0.9

2014-08-22 Thread anurag gupta
Ok, So the requests will be idle upto the long poll timeout if no response is generated. So in our test setup we have 60 clients and each makes 5000 requests. These 5000 requests are made at the same time and renewed(i.e. a new request is made in a loop ) as soon as the app server sends response

Daily catalina.out has thousands of NPEs

2014-08-22 Thread John Smith
TC 7.0.54, RHEL 6, JDK 1.7.0_60. I have two RH servers with one instance of TC on each, set up for clustering. There's a HWLB routing 80 to 8080 with 5 min sticky sessions. My daily catalina logs are set up to just show SEVERE errors, every day they average about *30mb* per server with the same

Re: java.lang.IllegalArgumentException at java.nio.Buffer.limit

2014-08-22 Thread John Smith
How would you use a proxy to do that? On Mon, Aug 18, 2014 at 3:23 PM, Yogesh Rao yog...@gmail.com wrote: How about tracing the http request and response for the call made? Tip : adding a proxy wud help here to log the entire request. Regards, -Yogesh On Monday, August 18, 2014, John

Tomcat Startup Times - Additional Question

2014-08-22 Thread George Sexton
I had an earlier thread where I asked some questions about tomcat startup times. Essentially, by disabling the annotation checking thing, I was able to get my startup time from 700 seconds down to around 30 seconds. Today I was doing some changes, and I moved a jar from the

Re: question on different version of tomcat running on the same pc

2014-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 8/21/14, 9:40 PM, David Kerber wrote: On 8/21/2014 6:18 PM, André Warnier wrote: Caldarale, Charles R wrote: From: Neven Cvetkovic [mailto:neven.cvetko...@gmail.com] Subject: Re: question on different version of tomcat running on the

Re: question on different version of tomcat running on the same pc

2014-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neven, On 8/22/14, 2:59 AM, Neven Cvetkovic wrote: On Thu, Aug 21, 2014 at 9:40 PM, David Kerber dcker...@verizon.net wrote: On 8/21/2014 6:18 PM, André Warnier wrote: Now all that's left to do is for someone to make a version of this that

Re: Daily catalina.out has thousands of NPEs

2014-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 John, On 8/22/14, 11:29 AM, John Smith wrote: TC 7.0.54, RHEL 6, JDK 1.7.0_60. I have two RH servers with one instance of TC on each, set up for clustering. There's a HWLB routing 80 to 8080 with 5 min sticky sessions. My daily catalina logs

Re: question on different version of tomcat running on the same pc

2014-08-22 Thread Neven Cvetkovic
Chris, On Fri, Aug 22, 2014 at 4:50 PM, Christopher Schultz ch...@christopherschultz.net wrote: So just write a batch script that looks like this: @ECHO OFF SET CATALINA_BASE=whatever SET CATALINA_HOME=whatever CALL %CATALINA_HOME%\bin\catalina.sh start You meant of course: CALL

Re: question on different version of tomcat running on the same pc

2014-08-22 Thread NEW IT
André, Chris and Neven, Sorry for the late response. Got stuck on other project and just come back now to read all your awesome helpful advices! Neven, I got to try your pseudocode. They are really detailed written and well explained. A little bit extra trouble in my situation is that I need to

Re: question on different version of tomcat running on the same pc

2014-08-22 Thread Neven Cvetkovic
Hey Shawn, On Fri, Aug 22, 2014 at 5:58 PM, NEW IT newi...@gmail.com wrote: André, Chris and Neven, Sorry for the late response. Got stuck on other project and just come back now to read all your awesome helpful advices! You are welcome! Neven, I got to try your pseudocode. They are

Re: question on different version of tomcat running on the same pc

2014-08-22 Thread NEW IT
Hey Neven, On Fri, Aug 22, 2014 at 4:13 PM, Neven Cvetkovic neven.cvetko...@gmail.com wrote: Hey Shawn, On Fri, Aug 22, 2014 at 5:58 PM, NEW IT newi...@gmail.com wrote: André, Chris and Neven, Sorry for the late response. Got stuck on other project and just come back now to read all