Re: Tomcat getting stopped when idle

2013-11-07 Thread Vidyadhar
Hi Chris, On Sat, Nov 2, 2013 at 7:04 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vidyadhar, On 11/1/13, 11:31 PM, Vidyadhar wrote: Hi Konstantin, On 2 Nov 2013 01:06, Konstantin Kolinko knst.koli...@gmail.com wrote:

Re: Fix your web application so it can cleanly un-deploy and re-deploy - how?

2013-11-07 Thread Mark Thomas
On 06/11/2013 22:50, Dale Ogilvie wrote: Chris made the following good suggestion in another thread: Can I make a suggestion? Fix your web application so it can cleanly un-deploy and re-deploy and then simply do a hot deployment? I've been down this track with our own Spring web apps and

Re: Issue running trunk when context reloadable=true

2013-11-07 Thread Mark Thomas
On 06/11/2013 17:35, Daniel Mikusa wrote: Is this possibly related to the recent changes listed here? http://mail-archives.apache.org/mod_mbox/tomcat-dev/201311.mbox/%3c52783299.5000...@apache.org%3e Guilty as charged. I've fixed this specific error along with some related issues. Thanks for

Re: Issue running trunk when context reloadable=true

2013-11-07 Thread Daniel Mikusa
On Nov 7, 2013, at 8:37 AM, Mark Thomas ma...@apache.org wrote: On 06/11/2013 17:35, Daniel Mikusa wrote: Is this possibly related to the recent changes listed here? http://mail-archives.apache.org/mod_mbox/tomcat-dev/201311.mbox/%3c52783299.5000...@apache.org%3e Guilty as charged.

Re: Reg: Connection pool stats

2013-11-07 Thread Daniel Mikusa
On Nov 7, 2013, at 2:07 AM, Anu Prab anupr...@gmail.com wrote: Hi, I am using Tomcat 7.0.42 and Tomcat jdbc pool. Just to be perfectly clear, how are you using this? With a Resource/ tag in your Tomcat configuration or are you creating the pool in your code? Either way, include the

Re: Web Service Client Response when Old Gen is 100%

2013-11-07 Thread Daniel Mikusa
On Nov 6, 2013, at 11:23 PM, Muhammad Ali Orakzai m.orak...@gmail.com wrote: First, please don't top post. This comment is an example of top posting. Instead reply inline, like the rest of my comments, or at the end. I am using GUI version of tomcat and heap memory has been configured to

tomcat7-websocket - tomcat7-maven-plugin java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler

2013-11-07 Thread Marek Jagielski
Hello, I am migrating my websocket application to the new API with version 7.0.47. How can correctly make a configuration of tomcat7-maven-plugin to use tomcat7-websocket on localhost. Here what I have in my pom: ... dependencies ...

RE: [OT] RE: Baked-in context paths

2013-11-07 Thread Jeffrey Janner
-Original Message- From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Sent: Wednesday, November 06, 2013 4:29 PM To: Tomcat Users List Subject: [OT] RE: Baked-in context paths -Original Message- From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov]

Re: @ServerEndpoint Guice

2013-11-07 Thread Nick Williams
On Nov 6, 2013, at 4:24 PM, Marko Sanković wrote: Nick, thanks for your quick response. Unfortunately, specifying javax.websocket.server.ServerEndpointConfig. Configurator is still not enough. This is what I have tried so far: @ServerEndpoint(value = /wsendpoint, configurator =

Re: tomcat7-websocket - tomcat7-maven-plugin java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler

2013-11-07 Thread Marek Jagielski
I think I moved forward. I changed version of javaee-web-api from 6.0 to 7.0: dependencygroupIdjavax/groupIdartifactIdjavaee- web-api/artifactIdversion6.0/versionscopeprovided/ scope/dependency to: dependencygroupIdjavax/groupIdartifactIdjavaee- web-api/artifactIdversion7.0/versionscopeprovided/

DBCP is Single Threaded

2013-11-07 Thread yogesh hingmire
While looking to upgrade to tomcat7, i understand the connection pool is a major improvement. I read that commons-dbcp is single threaded, in order to be thread safe commons-dbcp locks the entire pool, even during query validation. So as i understand, the connection pool will be locked when

Re: Baked-in context paths

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Milo, On 11/6/13, 5:22 PM, Milo Hyson wrote: I wasn't trying to play games, I was trying to route HTTP requests. Again, this is something I have done, without incident, for many years. It's possible I've just been lucky, but it's also possible

Re: Baked-in context paths

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 11/6/13, 6:06 PM, Leo Donahue - OETX wrote: From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Subject: RE: Baked-in context paths I'm not convinced relative links are bad, nor that one should not try to use them

Re: DBCP is Single Threaded

2013-11-07 Thread Mark Thomas
On 07/11/2013 15:58, yogesh hingmire wrote: While looking to upgrade to tomcat7, i understand the connection pool is a major improvement. I read that commons-dbcp is single threaded, in order to be thread safe commons-dbcp locks the entire pool, even during query validation. Where did you

Re: DBCP is Single Threaded

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yogesh, On 11/7/13, 10:58 AM, yogesh hingmire wrote: While looking to upgrade to tomcat7, i understand the connection pool is a major improvement. I read that commons-dbcp is single threaded, in order to be thread safe commons-dbcp locks the

Re: [OT] RE: Baked-in context paths

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeff, On 11/7/13, 10:17 AM, Jeffrey Janner wrote: -Original Message- From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Sent: Wednesday, November 06, 2013 4:29 PM To: Tomcat Users List Subject: [OT] RE: Baked-in context

Re: DBCP is Single Threaded

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 11/7/13, 11:03 AM, Mark Thomas wrote: On 07/11/2013 15:58, yogesh hingmire wrote: While looking to upgrade to tomcat7, i understand the connection pool is a major improvement. I read that commons-dbcp is single threaded, in order to

Re: DBCP is Single Threaded

2013-11-07 Thread Mark Thomas
On 07/11/2013 16:03, Christopher Schultz wrote: Yogesh, On 11/7/13, 10:58 AM, yogesh hingmire wrote: While looking to upgrade to tomcat7, i understand the connection pool is a major improvement. I read that commons-dbcp is single threaded, in order to be thread safe commons-dbcp locks

Re: DBCP is Single Threaded

2013-11-07 Thread Mark Thomas
On 07/11/2013 16:08, Christopher Schultz wrote: Mark, On 11/7/13, 11:03 AM, Mark Thomas wrote: On 07/11/2013 15:58, yogesh hingmire wrote: While looking to upgrade to tomcat7, i understand the connection pool is a major improvement. I read that commons-dbcp is single threaded, in order

Re: tomcat7-websocket - tomcat7-maven-plugin java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler

2013-11-07 Thread Marek Jagielski
While debuging I see that httpUpgradeHandlerClass in upgrade of org.apache.catalina.connector.Request is class org.apache.tomcat.websocket.server.WsHttpUpgradeHandler InstanceManager is org.apache.catalina.core.DefaultInstanceManager in the source code of my maven dependency of

RE: Bin Folders

2013-11-07 Thread Crystal Maramba
Thank you everyone! I have already combined bin folders. And yes, I was aware of that. And we are using 64-bit windows. That hasn't changed. Prior, the client did not state that they needed the windows service which is why I had to purge and merge files. -Original Message- From:

Re: how to reply

2013-11-07 Thread Mark H. Wood
On Wed, Nov 06, 2013 at 02:18:36PM -0700, Jay Vee wrote: I subscribed to this email list using the digest format; How do I freaking reply now? Ask the people who made your email user agent. It's their problem. Digest format is standardized, but every client implementation is different. I see

Re: tomcat7-websocket - tomcat7-maven-plugin java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler

2013-11-07 Thread Marek Jagielski
In tomcat's svn history I see that looked method was added to InstanceManager (tomcat-api) when Back-porting JSR-356: + public Object newInstance(Class? clazz) + throws IllegalAccessException, InvocationTargetException, NamingException, + InstantiationException; + However, I solved the

Second Instance of Tomcat

2013-11-07 Thread Crystal Maramba
Hi, I am getting ready to deploy the Second Instance of Tomcat on the same server using different IP addresses. \Tomcat\Instance1 (IP Address: xx.xx.xx.x1) \Tomcat\Instance2 (IP Address: xx.xx.xx.x2) I have a few question, see below: 1) For the Tomcat server ports, I will be using the

Re: Second Instance of Tomcat

2013-11-07 Thread David kerber
On 11/7/2013 12:46 PM, Crystal Maramba wrote: Hi, I am getting ready to deploy the Second Instance of Tomcat on the same server using different IP addresses. \Tomcat\Instance1 (IP Address: xx.xx.xx.x1) \Tomcat\Instance2 (IP Address: xx.xx.xx.x2) I have a few question, see below: 1) For

RE: Second Instance of Tomcat

2013-11-07 Thread Crystal Maramba
Do you know what the syntax would be to have the AJP and Shutdown port bind to the IP? Would it be the same address=xx.xx.xx.xx.? For ex: Server port=8005 shutdown=SHUTDOWN address=xx.xx.xx.xx Connector port=8009 protocol=AJP/1.3 redirectPort=8443 address=xx.xx.xx.xx/ -Original

(working) high load (100K+) websocket + NIO connector setting comparison on 1 Tomcat 7 instance

2013-11-07 Thread Bob DeRemer
Guys, I wanted to follow back around on some of the websocket load testing we've been doing in EC2.The good news is, we were able to get 100K websockets connected directly to a single Tomcat instance (EASILY) - once we got the settings right. As a result, I wanted to post my results here

Re: Second Instance of Tomcat

2013-11-07 Thread Daniel Mikusa
On Nov 7, 2013, at 12:46 PM, Crystal Maramba cmara...@acumenllc.com wrote: Hi, I am getting ready to deploy the Second Instance of Tomcat on the same server using different IP addresses. \Tomcat\Instance1 (IP Address: xx.xx.xx.x1) \Tomcat\Instance2 (IP Address: xx.xx.xx.x2) I have a

Re: (working) high load (100K+) websocket + NIO connector setting comparison on 1 Tomcat 7 instance

2013-11-07 Thread Mark Thomas
On 07/11/2013 18:20, Bob DeRemer wrote: Guys, I wanted to follow back around on some of the websocket load testing we’ve been doing in EC2.The good news is, we were able to get 100K websockets connected directly to a single Tomcat instance (EASILY) Excellent. My theory is it’s a

RE: Second Instance of Tomcat

2013-11-07 Thread Crystal Maramba
Thanks, Dan. That helps a lot. 2) a. I was referring to importing another certificate to the same .keystore that Instance1 is using. 3) The tomcat-users.xml file is used to store the user and password for the tomcat manager which is used to deploy .war files. -Original Message- From:

RE: (working) high load (100K+) websocket + NIO connector setting comparison on 1 Tomcat 7 instance

2013-11-07 Thread Bob DeRemer
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Thursday, November 07, 2013 1:52 PM To: Tomcat Users List Subject: Re: (working) high load (100K+) websocket + NIO connector setting comparison on 1 Tomcat 7 instance On 07/11/2013 18:20, Bob DeRemer wrote:

Re: Second Instance of Tomcat

2013-11-07 Thread Daniel Mikusa
On Nov 7, 2013, at 2:08 PM, Crystal Maramba cmara...@acumenllc.com wrote: Thanks, Dan. That helps a lot. Please don't top post. Reply inline or at the bottom. 2) a. I was referring to importing another certificate to the same .keystore that Instance1 is using. A keystore file can contain

Re: Baked-in context paths

2013-11-07 Thread Milo Hyson
On Nov 7, 2013, at 7:57 AM, Christopher Schultz ch...@christopherschultz.net wrote: The only way to reliably mutate context-paths during proxying is to re-write the headers and content of the pages. It's miserable. Perhaps YOUR experiences have been miserable, but clearly that's not the case

Re: Baked-in context paths

2013-11-07 Thread Milo Hyson
On Nov 7, 2013, at 7:59 AM, Christopher Schultz ch...@christopherschultz.net wrote: What I'm saying is that from a practical point of view, when writing dynamic web applications, context-relative links are always the way to go. I'm not sure how much more I can say on this topic and nobody

Re: (working) high load (100K+) websocket + NIO connector setting comparison on 1 Tomcat 7 instance

2013-11-07 Thread Terence M. Bandoian
On 11/7/2013 12:51 PM, Mark Thomas wrote: On 07/11/2013 18:20, Bob DeRemer wrote: Guys, I wanted to follow back around on some of the websocket load testing we’ve been doing in EC2.The good news is, we were able to get 100K websockets connected directly to a single Tomcat instance

RE: Fix your web application so it can cleanly un-deploy and re-deploy - how?

2013-11-07 Thread Dale Ogilvie
Mark Thomas [mailto:ma...@apache.org] wrote: snip other good stuff In short, if there is something the Tomcat developers can do to help then we would love to do so - just let us know. Many thanks Mark, I'll definitely take careful notes next time I look at this and report back. Dale

Re: DBCP is Single Threaded

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 11/7/13, 11:14 AM, Mark Thomas wrote: On 07/11/2013 16:03, Christopher Schultz wrote: Yogesh, On 11/7/13, 10:58 AM, yogesh hingmire wrote: While looking to upgrade to tomcat7, i understand the connection pool is a major improvement.

Re: Baked-in context paths

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Milo, On 11/7/13, 2:46 PM, Milo Hyson wrote: On Nov 7, 2013, at 7:57 AM, Christopher Schultz ch...@christopherschultz.net wrote: The only way to reliably mutate context-paths during proxying is to re-write the headers and content of the

Re: Fix your web application so it can cleanly un-deploy and re-deploy - how?

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dale, On 11/6/13, 5:50 PM, Dale Ogilvie wrote: Chris made the following good suggestion in another thread: Can I make a suggestion? Fix your web application so it can cleanly un-deploy and re-deploy and then simply do a hot deployment?

Re: Second Instance of Tomcat

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dan, On 11/7/13, 2:43 PM, Daniel Mikusa wrote: On Nov 7, 2013, at 2:08 PM, Crystal Maramba cmara...@acumenllc.com wrote: Thanks, Dan. That helps a lot. Please don't top post. Reply inline or at the bottom. 2) a. I was referring to

Re: DBCP is Single Threaded

2013-11-07 Thread Mark Thomas
On 07/11/2013 21:10, Christopher Schultz wrote: Can you describe the effective difference between my over-simplified description and what is implemented in commons-pool (ignoring thread-fairness, which I'll admit is a very useful feature)? For starters, the relatively expensive validation

Re: Baked-in context paths

2013-11-07 Thread Milo Hyson
On Nov 7, 2013, at 1:24 PM, Christopher Schultz ch...@christopherschultz.net wrote: But nobody in their right mind uses ../../../.. to get to the context-path (which, by definition is relative to the host)... instead they use request.getContextPath() and then tack-on a context-relative link

Re: DBCP is Single Threaded

2013-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 11/7/13, 4:44 PM, Mark Thomas wrote: On 07/11/2013 21:10, Christopher Schultz wrote: Can you describe the effective difference between my over-simplified description and what is implemented in commons-pool (ignoring thread-fairness,

Re: Reg: Connection pool stats

2013-11-07 Thread Anu Prab
I am using Tomcat 7.0.42 and Tomcat jdbc pool. Just to be perfectly clear, how are you using this? With a Resource/ tag in your Tomcat configuration or are you creating the pool in your code? Either way, include the necessary config or code which shows how you've defined the pool. The pool