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 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 configu

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-fa

Re: Baked-in context paths

2013-11-07 Thread Milo Hyson
On Nov 7, 2013, at 1:24 PM, Christopher Schultz 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 to the end of it. You

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: 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 > 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

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: 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 > 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. >

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: >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

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 insta

Re: Baked-in context paths

2013-11-07 Thread Milo Hyson
On Nov 7, 2013, at 7:59 AM, Christopher Schultz 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 else > seems to care so I'

Re: Baked-in context paths

2013-11-07 Thread Milo Hyson
On Nov 7, 2013, at 7:57 AM, Christopher Schultz 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 for everyone. The only hea

Re: Second Instance of Tomcat

2013-11-07 Thread Daniel Mikusa
On Nov 7, 2013, at 2:08 PM, Crystal Maramba 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 multiple certificate

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 wro

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: Da

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 Daniel Mikusa
On Nov 7, 2013, at 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,

(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 f

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: -Original Message- From: David kerber [mailto:dcker...@verizon.net] Sent: Thursday, November 07, 2013 10:00 AM To: Tomcat Users List Subject: R

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

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 Con

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 problem

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 s

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: Kons

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 tomcat-api-7.0.47

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 thre

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-

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 o

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 >> conte

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

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 y

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

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 handi

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 > poss

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: javaxjavaee- web-api6.0provided to: javaxjavaee- web-api7.0provided However now I get an error on the server side: SEVERE: Servlet.service() for servlet [default] in context with path [] threw exception [Filter execution

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: [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

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: ... ... org.apache.tomcattomcat-catalina org.apache.tomcattomcat-coyote org.apac

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 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 > 500M min and 1000M m

Re: Reg: Connection pool stats

2013-11-07 Thread Daniel Mikusa
On Nov 7, 2013, at 2:07 AM, Anu Prab 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 tag in your Tomcat configuration or are you creating the pool in your code? Either way, include the necessary config or code which

Re: Issue running trunk when context reloadable=true

2013-11-07 Thread Daniel Mikusa
On Nov 7, 2013, at 8:37 AM, Mark Thomas 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. > > I've fixe

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 f

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 app

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" > > wrote: > >>