Re: Tomcat managed connections (DBCP) with driver in web application.

2012-10-09 Thread Andrew Todd
On Tue, Oct 9, 2012 at 5:19 PM, Jeremy Heiler wrote: > "Use of the JDBC Data Sources JNDI Resource Factory requires that you Ah, OK. I'm not using JNDI. I'm instantiating the DBCP as a Spring bean inside the app. - To unsubscrib

Re: Tomcat managed connections (DBCP) with driver in web application.

2012-10-09 Thread Andrew Todd
On Tue, Oct 9, 2012 at 10:37 AM, Jeremy Heiler wrote: > Every resource I've read thus far has said that the driver jar must be > in $CATALINA_HOME/lib or DBCP wont work. Can you provide a link for that? I've been just fine bundling the Oracle 11 library inside my .war file. For that matter, I ac

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Andrew Todd
On Mon, Oct 1, 2012 at 11:41 AM, Konstantin Kolinko wrote: > 2. If the protocol between HTTPD and Tomcat is AJP, > then the protocol itself has its own limitation, which is ~15 times > lesser than that amount. Thanks for anticipating my next question. Right now we're using mod_proxy with the HTTP

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Andrew Todd
On Sun, Sep 30, 2012 at 6:21 AM, Konstantin Kolinko wrote: > In Tomcat each request processor has a byte buffer and all the headers > must fit into that buffer. Thanks so much for the detailed response. I have a couple more questions: 1) When a request is rejected for being too large, is there a

maxHTTPHeaderSize, and specific header lengths

2012-09-27 Thread Andrew Todd
I have a question about maxHttpHeaderSize [0]. In Apache httpd, there are two different parameters that affect the maximum size of an HTTP header, limitRequestFieldSize and limitRequestLine. [1] These configuration values specify about 8 kilobytes per _line_ in the incoming request. However, in Tom

Re: OT: Petition to the White house to expand the use of FreeSoftware

2012-02-14 Thread Andrew Todd
On Tue, Feb 14, 2012 at 11:51 AM, Christopher Schultz wrote: > Stallman as a government adviser? :) Shouldn't that be GNU/Government? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: JVM config for tomcat7.0.19

2011-11-11 Thread Andrew Todd
On Fri, Nov 11, 2011 at 12:59 PM, celtic man wrote: > > we have JAVA_OPTS set in catalina.sh > > start_tomcat -> /usr/local/scripts/start_tomcat > stop_tomcat -> /usr/local/tomcat/bin/shutdown.sh > > MemTotal: 4149124 kB > MemFree:381644 kB > Buffers:106832 kB > Cached:

Re: Tomcat JDBC Connection Pool, Tomcat 7, and Maven?

2011-08-31 Thread Andrew Todd
Answering my own questions. On Mon, Aug 29, 2011 at 5:12 PM, Andrew Todd wrote: > So I'm working on a Maven-based project in which I would like to use > the Tomcat JDBC connection pool. I've noticed that with Tomcat 7, the > documentation has now moved into the official T

Tomcat JDBC Connection Pool, Tomcat 7, and Maven?

2011-08-29 Thread Andrew Todd
Hi, So I'm working on a Maven-based project in which I would like to use the Tomcat JDBC connection pool. I've noticed that with Tomcat 7, the documentation has now moved into the official Tomcat docs (https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html). However, I'm wondering a few things:

Re: jvmRoute generation

2011-08-24 Thread Andrew Todd
On Wed, Aug 24, 2011 at 2:44 PM, Christopher Schultz wrote: > If you look at the stock conf/server.xml, it says: > Documentation at /docs/config/engine.html > " > > ...right above the element. > > If you read that document, the jvmRoute attribute says: I know, I have that link in the initial ema

Re: jvmRoute generation

2011-08-24 Thread Andrew Todd
On Wed, Aug 24, 2011 at 10:07 AM, Christopher Schultz wrote: > For my money, I'd go for sticky sessions and no replication at all. Correct, this is, as far as I know, what we are planning to do. Jeffrey Janner wrote: > I see from your first post that you know where to find the Tomcat 7 > docum

Re: jvmRoute generation

2011-08-24 Thread Andrew Todd
On Tue, Aug 23, 2011 at 5:31 PM, Christopher Schultz wrote: > If you are using sticky sessions, then it is vital to the operation of > your cluster that the jvmRoutes be set with care and configured in the > web server to match the individual Tomcat instances. Thanks, it sounds like I need to go

Re: jvmRoute generation

2011-08-23 Thread Andrew Todd
On Tue, Aug 23, 2011 at 5:08 PM, Jeffrey Janner wrote: > Why on God's Green Earth would you want a "random" jvmRoute value? I'm new at this, explain to me why I wouldn't. I have to deploy to a cluster, and my understanding is that the Apache front-end server doesn't care about the value of jvmRou

Re: jvmRoute generation

2011-08-23 Thread Andrew Todd
On Tue, Aug 23, 2011 at 3:57 PM, Christopher Schultz wrote: > You should be able to use a parametric replacement using a system > property. That way, the file is the same across all installations but > the system property can be set locally. > > Something like this: > >  defaultHost="localhost" >

jvmRoute generation

2011-08-23 Thread Andrew Todd
I'm working on putting together a clustered environment with sticky sessions, and I'm wondering if there's any way of automatically generating a jvmRoute value in the engine container (https://tomcat.apache.org/tomcat-7.0-doc/config/engine.html) rather than setting one manually for each Tomcat inst