high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-13 Thread Bob DeRemer
Hi Mark (et al), We're seeing really high CPU utilization with just a 1000 active websockets that are sending/receiving 100 byte binary messages. The profiling snippet below was with 1000 connections. If we start to increase the number of connections, the time spent in the NIO logic starts

Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-13 Thread David kerber
On 12/13/2013 8:12 AM, Bob DeRemer wrote: Hi Mark (et al), We’re seeing really high CPU utilization with just a 1000 active websockets that are sending/receiving 100 byte binary messages. The profiling snippet below was with 1000 connections. If we start to increase the number of

LDPA Authentication Failure

2013-12-13 Thread Phill Perryman
I have set up the following authentication to the ldap server. I can log into this server using the LdapAdmin browser ok. Running 7.0.34 (I think its 34 but I can't bring the server up at the moment) I am getting a stack trace Dec 13, 2013 1:56:35 PM org.apache.catalina.realm.JNDIRealm open

Re: LDPA Authentication Failure

2013-12-13 Thread Cédric Couralet
2013/12/13 Phill Perryman ph...@alstonelane.com: I have set up the following authentication to the ldap server. I can log into this server using the LdapAdmin browser ok. Running 7.0.34 (I think its 34 but I can't bring the server up at the moment) I am getting a stack trace Dec 13, 2013

Re: LDPA Authentication Failure

2013-12-13 Thread André Warnier
Cédric Couralet wrote: ... Is it really the definition that you have in server.xml or is a typo? As it is written, the Realm has no attribute which may explain the localhost in the message (default in JNDI). and Cedric means : Is it really the definition that you have in server.xml or is a

RE: LDPA Authentication Failure

2013-12-13 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: LDPA Authentication Failure That's because you have : Realm className=org.apache.catalina.realm.JNDIRealm ... text ... /Realm So in fact Realm has one attribute (className), but not the other ones that you thought it has. And

What if my database is unavailable at startup?

2013-12-13 Thread Dames, Kristopher J
Hi, I use tomcat 6 and have noticed if a database is not available when tomcat starts, tomcat will not try to connect once the database becomes available. Tomcat must be restarted to establish the database connection. What are best practices regarding this? Is there a way in tomcat to get it

Re: What if my database is unavailable at startup?

2013-12-13 Thread Daniel Mikusa
On Dec 13, 2013, at 2:24 PM, Dames, Kristopher J kristopher.da...@mercy.net wrote: Hi, I use tomcat 6 Which version specifically? and have noticed if a database is not available when tomcat starts, tomcat will not try to connect once the database becomes available. Tomcat must be

RE: What if my database is unavailable at startup?

2013-12-13 Thread Dames, Kristopher J
Daniel, I use tomcat 6.0.32. Here is an example Resource tag: Resource accessToUnderlyingConnectionAllowed=false auth=Container defaultAutoCommit=true defaultReadOnly=false defaultSchema=x driverClassName=oracle.jdbc.driver.OracleDriver

Re: What if my database is unavailable at startup?

2013-12-13 Thread Jose María Zaragoza
With testOnBorrow=true ( I think that is the default value in Tomcat 6 ) + validationQuery=SELECT 1 FROM DUAL , that should work I've never used maxOpenPreparedStatements=0 accessToUnderlyingConnectionAllowed=false what are they for ? 2013/12/13 Dames, Kristopher J

Re: What if my database is unavailable at startup?

2013-12-13 Thread Daniel Mikusa
On Dec 13, 2013, at 2:39 PM, Dames, Kristopher J kristopher.da...@mercy.net wrote: Daniel, When you reply, please include the previous email and don't top post. Post inline like me or at the bottom. This helps with the readability of this thread and it's the convention that we follow on

RE: What if my database is unavailable at startup?

2013-12-13 Thread Dames, Kristopher J
With testOnBorrow=true ( I think that is the default value in Tomcat 6 ) + validationQuery=SELECT 1 FROM DUAL , that should work So you are saying my configuration should work as-is to allow Tomcat to create a database connection pool to a database that was unavailable when Tomcat was

Re: What if my database is unavailable at startup?

2013-12-13 Thread Jose María Zaragoza
2013/12/13 Dames, Kristopher J kristopher.da...@mercy.net: With testOnBorrow=true ( I think that is the default value in Tomcat 6 ) + validationQuery=SELECT 1 FROM DUAL , that should work So you are saying my configuration should work as-is to allow Tomcat to create a database connection

Re: LDPA Authentication Failure

2013-12-13 Thread Phill
Thanks, I have been staring at it for ages. The is a massive typo. I had the debug as it is included in lots of examples dated 2012+ I will remove it. No wonder the changes I was making seemed to have no effect. Sent from my iPad On 13 Dec 2013, at 16:07, Cédric Couralet

RE: What if my database is unavailable at startup?

2013-12-13 Thread Propes, Barry L
I've never heard of these or seen these attributes either. What are they for? -Original Message- From: Jose María Zaragoza [mailto:demablo...@gmail.com] Sent: Friday, December 13, 2013 2:10 PM To: Tomcat Users List Subject: Re: What if my database is unavailable at startup? With

RE: What if my database is unavailable at startup?

2013-12-13 Thread Caldarale, Charles R
From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: What if my database is unavailable at startup? I've never heard of these or seen these attributes either. What are they for? maxOpenPreparedStatements=0 accessToUnderlyingConnectionAllowed=false You could look in the doc:

RE: What if my database is unavailable at startup?

2013-12-13 Thread Propes, Barry L
-Original Message- From: Dames, Kristopher J [mailto:kristopher.da...@mercy.net] Sent: Friday, December 13, 2013 1:39 PM To: Tomcat Users List Subject: RE: What if my database is unavailable at startup? Daniel, I use tomcat 6.0.32. Here is an example Resource tag: Resource

RE: What if my database is unavailable at startup?

2013-12-13 Thread Propes, Barry L
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Friday, December 13, 2013 3:59 PM To: Tomcat Users List Subject: RE: What if my database is unavailable at startup? From: Propes, Barry L [mailto:barry.l.pro...@citi.com] Subject: RE: What if my

Re: What if my database is unavailable at startup?

2013-12-13 Thread Howard W. Smith, Jr.
OP, On Fri, Dec 13, 2013 at 2:24 PM, Dames, Kristopher J kristopher.da...@mercy.net wrote: I use tomcat 6 and have noticed if a database is not available when tomcat starts, tomcat will not try to connect once the database becomes available. Tomcat must be restarted to establish the database

RE: What if my database is unavailable at startup?

2013-12-13 Thread Dames, Kristopher J
can/should we assume that your URL is referencing a database on a different machine, same network/intranet/LAN? url=jdbc:oracle:thin:@x.y.com:1521:x it seems as though OP is referencing a database somewhere on the 'internet'. The database server is on the same network,

Re: Minor grammar glitch in a Websocket exception message.

2013-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/12/13, 4:43 PM, Mark Thomas wrote: On 12/12/2013 06:35, Igor Urisman wrote: As seen in 8.0.0 RC5: java.lang.IllegalStateException: javax.websocket.DeploymentException: Multiple Endpoints may not be deployed to using the same path

Re: What if my database is unavailable at startup?

2013-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dan, On 12/13/13, 2:29 PM, Daniel Mikusa wrote: On Dec 13, 2013, at 2:24 PM, Dames, Kristopher J kristopher.da...@mercy.net wrote: Hi, I use tomcat 6 Which version specifically? and have noticed if a database is not available when

Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bob, On 12/13/13, 8:12 AM, Bob DeRemer wrote: Hi Mark (et al), While Mark is one of the most likely to respond, please address your questions only to the community at least at first ;) We’re seeing really high CPU utilization with just a

Re: Minor grammar glitch in a Websocket exception message.

2013-12-13 Thread Igor Urisman
Precisamente. On Fri, Dec 13, 2013 at 3:11 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/12/13, 4:43 PM, Mark Thomas wrote: On 12/12/2013 06:35, Igor Urisman wrote: As seen in 8.0.0 RC5: