Re: DBCP params different for the Tomcat JDBC (not DBCP) implementation in Tomcat 8?

2015-10-07 Thread Bradley Wagner
> The general recommendation is to use the default pool (commons-dbcp). Great. Thanks! > Unless you have narrowed a performance problem to the pool itself, there's no reason to use one over the other. I suspect that there are only a few companies in the world where the connection pool

Monitoring Connections

2015-10-07 Thread Jamie Jackson
Hi Folks, I had a server crash on Friday, and I had the following symptoms: Response time worsened, and when I looked at my real-time monitoring (an app called FusionReactor), I saw that the app *seemed* to be single-threading (I only saw one request process at a time), then after a few minutes,

Re: maxFileSize

2015-10-07 Thread Jamie Jackson
That answers my questions (and more) perfectly. Thanks a lot. On Sat, Oct 3, 2015 at 10:23 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jamie, > > On 10/2/15 11:23 AM, Jamie Jackson wrote: > > On Thu, Oct 1, 2015 at 5:25

Re: Monitoring Connections

2015-10-07 Thread Aurélien Terrestris
Hi Jamie, when this happens you can do a thread-dump (kill -3 pid on Linux platforms) and you would see if there is a lock on JDBC objects, or anything else synchronized (from the Collections like Hashtable). Not easy for beginners to understand a dump, but worth learning. Very often an

Re: Tomcat clustering for simplified config

2015-10-07 Thread Mark Thomas
On 07/10/2015 00:36, Mark Bramer wrote: > Hi list, > > I just signed up to the list - please forgive any newb mistakes but hopefully > I'm following the right format, style and content. > > I currently work in a production environment with eight app servers, all > running the same version of

Re: Tomcat clustering for simplified config

2015-10-07 Thread Christoph Nenning
> Hi list, > > I just signed up to the list - please forgive any newb mistakes but > hopefully I'm following the right format, style and content. > > I currently work in a production environment with eight app servers, > all running the same version of Tomcat (currently 7.0.62). Four >

Enabling X-XSS-Protection

2015-10-07 Thread Jacopo Cappellato
Hi all, I am looking for a way to add the X-XSS-Protection header (*) to the response from Tomcat. I am currently using the Tomcat's HttpHeaderSecurityFilter that allows to setup other useful security related headers but it doesn't seem to support the X-XSS-Protection header (**). Do you think

Re: DBCP params different for the Tomcat JDBC (not DBCP) implementation in Tomcat 8?

2015-10-07 Thread Bradley Wagner
Ah, I see what you're saying. My apologies for not seeing that sooner. That post was also very helpful in explaining why both exist. Thank you! Is it your recommendation then to use DBCP 2 over Tomcat JDBC in Tomcat 8? If so, I think it would be helpful to have a page on the public Tomcat

Re: DBCP params different for the Tomcat JDBC (not DBCP) implementation in Tomcat 8?

2015-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bradley, On 10/7/15 3:21 PM, Bradley Wagner wrote: > Ah, I see what you're saying. My apologies for not seeing that > sooner. > > That post was also very helpful in explaining why both exist. > Thank you! It's definitely confusing to those you

Re: Tomcat clustering for simplified config

2015-10-07 Thread Igor Cicimov
On 07/10/2015 10:37 AM, "Mark Bramer" wrote: > > Hi list, > > I just signed up to the list - please forgive any newb mistakes but hopefully I'm following the right format, style and content. > > I currently work in a production environment with eight app servers, all running the

Re: Tomcat clustering for simplified config

2015-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 10/7/15 4:36 AM, Christoph Nenning wrote: >> Hi list, >> >> I just signed up to the list - please forgive any newb mistakes >> but hopefully I'm following the right format, style and content. >> >> I currently work in a production

Re: Tomcat bad char issue with new cluster

2015-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Saurav, On 10/6/15 9:37 AM, Saurav Maulick wrote: > Please find my answer below > > > *Two new clusters or two new nodes added to an existing cluster?* > > Two Nodes > > > *What is the difference between the conf/server.xml on a "working" >

Re: Tomcat bad char issue with new cluster

2015-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Saurav, On 10/7/15 11:52 AM, Christopher Schultz wrote: > Saurav, > > On 10/6/15 9:37 AM, Saurav Maulick wrote: >> Please find my answer below > > >> *Two new clusters or two new nodes added to an existing >> cluster?* > >> Two Nodes > > >>

Re: Regarding StuckThreadDetectionValve

2015-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yogesh, On 10/6/15 2:06 AM, Yogesh Patel wrote: > I just wanted to know in tomcat is there any way to detect such > long running thread and kill them. There is no safe way to kill a thread. All kinds of bad things can happe n. Are you sure the

Re: DBCP params different for the Tomcat DBCP implementation in Tomcat 8?

2015-10-07 Thread Konstantin Kolinko
2015-10-07 21:36 GMT+03:00 Bradley Wagner : > Hi, > > We recently upgraded to Tomcat 8. As per the Migration Guide: > https://tomcat.apache.org/migration-8.html#Database_Connection_Pooling and > DBCP documentation >

Re: DBCP params different for the Tomcat DBCP implementation in Tomcat 8?

2015-10-07 Thread Bradley Wagner
Did not what? We added "factory='org.apache.tomcat.jdbc.pool.DataSourceFactory'". That switched us to Tomcat DBCP, correct? At that time, we were using the updated "maxWaitMillis" and "maxTotal" in our context.xml and Tomcat didn't seem to complain on startup. Then, when we tried to set

Re: DBCP params different for the Tomcat DBCP implementation in Tomcat 8?

2015-10-07 Thread Mark Thomas
On 07/10/2015 19:54, Bradley Wagner wrote: > Did not what? > > We added "factory='org.apache.tomcat.jdbc.pool.DataSourceFactory'". That > switched us to Tomcat DBCP, correct? No. There is no such thing as Tomcat DBCP. There is Apache Commons DBCP 1. This is used by default in Tomcat 6.0.x and

DBCP params different for the Tomcat DBCP implementation in Tomcat 8?

2015-10-07 Thread Bradley Wagner
Hi, We recently upgraded to Tomcat 8. As per the Migration Guide: https://tomcat.apache.org/migration-8.html#Database_Connection_Pooling and DBCP documentation https://tomcat.apache.org/tomcat-8.0-doc/jndi-datasource-examples-howto.html#Database_Connection_Pool_(DBCP_2)_Configurations, we