Re: Bug with tomcat JDBC connection pool?

2012-03-05 Thread Mark Thomas
On 04/03/2012 23:37, Adib wrote: Hi, I think I have run into a bug with tomcat, but wanted to check with the user list to make sure it is a bug before I file it. Good job you checked. It isn't a bug, it is user error. Background: I am using the tomact jdbc pool over the dbcp pool and I

Re: Maven and dependencies for $CATALINA/lib

2012-03-05 Thread Olivier Lamy
2012/3/4 James Apfel james.ap...@gmail.com: Hi, I'm working on a project that requires me to replace Tomcat's SessionManager. I've created a src/main/webapp/META-INF/context.xml (it defines the custom Manager) and I've edited my Maven pom file to include the requires JARs in the

Re: [Tomcat Maven plugin] Not pulling in Test dependencies when useTestClasspath is true

2012-03-05 Thread Olivier Lamy
2012/3/4 Nathan Schile nathan.sch...@gmail.com: I have the plugin configured to pull in test classes and dependencies [1], however it doesn't seem to be pulling in my test dependencies.  I am recieving a NoClassDefFoundError on the class from a test dependency, if I switch the dependency to a

Tomcat7 OutOFMemoryError

2012-03-05 Thread Philippe ROUXEL
When I set JAVA_OPTS= -Xmx1024m -Xss75m I got: GRAVE: A child container failed during start java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: unable to c reate new native thread at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at

Re: Tomcat silently dies

2012-03-05 Thread Carl Kabbe
David, Thanks, I will try that. Carl On Mar 4, 2012, at 7:45 PM, David Kerber wrote: On 3/4/2012 7:31 PM, Carl Kabbe wrote: Recap: OS Slackware 13.x 64bit Tomcat 6.0.24 Two different servers… one with 16 GB and one with 8GB Heap 2GB, PermGen 300MB Tried

Re: Tomcat7 OutOFMemoryError

2012-03-05 Thread Rainer Frey
On 05.03.2012, at 11:30, Philippe ROUXEL wrote: When I set JAVA_OPTS= -Xmx1024m -Xss75m That means: each thread get a stack of 75MB. One of the following applies: * the operating system has a limit on thread stack size * the per process memory limit is reached before all initial tomcat threads

Re: Closing tomcat jdbc connection pool

2012-03-05 Thread amit shah
Probably a solution (or workaround) would be to have a initial decorator which doesn't delegate the unwrap() method to the tomcat data source and instead just returns the org.apache.tomcat.jdbc.pool.DataSource instance. The downside is that this needs to be the very first decorator applied. On

AW: Too many connections in keepalive state in jk threadpool

2012-03-05 Thread Beier Michael
Hallo Herr Jung, -Ursprüngliche Nachricht- Von: Rainer Jung [mailto:rainer.j...@kippdata.de] Hallo Herr Beier, On 02.03.2012 11:19, Beier Michael wrote: Hi all, we're running tomcat 7.0.23 on sun jdk 1.6.0_29, connected via ajp to httpd 2.2.21 using mod_jk 1.2.32. I observed the

RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Philippe ROUXEL
75MB of stack is needed by hibenate to save the data aka a graph. Philippe De: Rainer Frey [mailto:rainer.f...@inxmail.de] Date: lun. 05/03/2012 13:19 À: Tomcat Users List Objet : Re: Tomcat7 OutOFMemoryError On 05.03.2012, at 11:30, Philippe ROUXEL wrote:

Re: Maven and dependencies for $CATALINA/lib

2012-03-05 Thread Olivier Lamy
2012/3/5 Olivier Lamy ol...@apache.org: 2012/3/4 James Apfel james.ap...@gmail.com: Hi, I'm working on a project that requires me to replace Tomcat's SessionManager. I've created a src/main/webapp/META-INF/context.xml (it defines the custom Manager) and I've edited my Maven pom file to

Re: [Tomcat 7] org.apache.jasper.xmlparser.EncodingMap question

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eu-gene, On 3/2/12 1:34 AM, Eu-gene Chung wrote: I'm doing porting Jasper of Tomcat 7 to our product. I was adding 'UTF-32' mappings to the org.apache.jasper.xmlparser.EncodingMap#fIANA2JavaMap when I found that there were some unmatched

Re: make Tomcat reachable on internet

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 3/1/12 7:18 PM, David Kerber wrote: On 3/1/2012 5:55 PM, giovo87 wrote: is this the only one solution? changing some router's configurations or ubuntu's firewall configurations can i have the same result? Actually, you'll have to

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 3/4/12 10:29 AM, Brooke Hedrick wrote: There are cases where either or both get restarted, but the issue is only when the @otherdb is restarted and not the primary. So, you have a setup like this: DBCP --- jdbc --- Primary --- Oracle

Re: make Tomcat reachable on internet

2012-03-05 Thread David kerber
On 3/5/2012 10:52 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 3/1/12 7:18 PM, David Kerber wrote: On 3/1/2012 5:55 PM, giovo87 wrote: is this the only one solution? changing some router's configurations or ubuntu's firewall configurations can i

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 3/4/12 4:57 PM, Brooke Hedrick wrote: Everyone - the feedback is great, but it still is just working around the elimination of a jmx call, if that is the case. Why is the jmc close() method being eliminated? Maybe I missed

Re: make Tomcat reachable on internet

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 3/5/12 11:04 AM, David kerber wrote: Yes, that's the way mine was, but the business account was only $2.00 more than the home acct, so I decided to stay legal on it. They also bumped up my outgoing bandwidth when I upgraded, though the

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, On 3/5/12 8:14 AM, Philippe ROUXEL wrote: 75MB of stack is needed by hibenate to save the data aka a graph. What!? Does Hibernate have some kind of method that needs to call itself recursively 100,000 times? - -chris -BEGIN PGP

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Brooke Hedrick
On Mar 5, 2012 11:34 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, On 3/5/12 8:14 AM, Philippe ROUXEL wrote: 75MB of stack is needed by hibenate to save the data aka a graph. Philippe, are you confusing stack memory

Re: Maven and dependencies for $CATALINA/lib

2012-03-05 Thread James Apfel
Your change fixed it. Thanks! On Mon, Mar 5, 2012 at 9:42 AM, Olivier Lamy ol...@apache.org wrote: 2012/3/5 Olivier Lamy ol...@apache.org: 2012/3/4 James Apfel james.ap...@gmail.com: Hi, I'm working on a project that requires me to replace Tomcat's SessionManager. I've created a

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Michael
Pid schrieb: On 03/03/2012 12:33, Michael wrote: Hi folks, I've been examining the JMX operations of the new pool and did not find a crucial one. Sometimes our Oracle database has to be restarted, the pool still keeps the pooled connections. The webapp requests a connection, receives a pooled

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread André Warnier
Brooke Hedrick wrote: On Mar 5, 2012 11:34 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, On 3/5/12 8:14 AM, Philippe ROUXEL wrote: 75MB of stack is needed by hibenate to save the data aka a graph. Philippe, are you

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Chema
Do you have testOnBorrow=true and a validationQuery=SELECT 1 FROM DUAL configured? This should suffice to ensure each connection is valid before use. Pid, works like a charms. Thanks very much. From Tomcat doc for testOnBorrow setting: The indication of whether objects will be

RE: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: RE : Tomcat7 OutOFMemoryError I found this page which may be of interest : http://www.odi.ch/weblog/posting.php?posting=411 This one's also pretty interesting, especially the link to Cliff Click's blog:

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Michael
Chema schrieb: Do you have testOnBorrow=true and a validationQuery=SELECT 1 FROM DUAL configured? This should suffice to ensure each connection is valid before use. Pid, works like a charms. Thanks very much. From Tomcat doc for testOnBorrow setting: The indication of whether objects

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Chema
2012/3/5 Michael sg...@gmx.net: Chema schrieb: Do you have testOnBorrow=true and a validationQuery=SELECT 1 FROM DUAL configured? This should suffice to ensure each connection is valid before use. Pid, works like a charms. Thanks very much. It executes the validation query and

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Michael
Chema schrieb: 2012/3/5 Michael sg...@gmx.net: Chema schrieb: Do you have testOnBorrow=true and a validationQuery=SELECT 1 FROM DUAL configured? This should suffice to ensure each connection is valid before use. Pid, works like a charms. Thanks very much. It executes the validation

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Pid
On 05/03/2012 20:39, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: RE : Tomcat7 OutOFMemoryError I found this page which may be of interest : http://www.odi.ch/weblog/posting.php?posting=411 This one's also pretty interesting, especially the link

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Chema
No if the connection has been reset by the instance. The query will result in a SQLException. You have to close the connection and open a new one. The query works on an open connection only. That's the point. See the second paragraph of this [1]. But the problem was when you restart the

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 3/5/12 3:54 PM, Pid wrote: Varies by OS too. -XX:ThreadStackSize=512 Thread Stack Size (in Kbytes). (0 means use default stack size) [Sparc: 512; Solaris x86: 320 (was 256 prior in 5.0 and earlier); Sparc 64 bit: 1024; Linux amd64:

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chema, On 3/5/12 4:06 PM, Chema wrote: No if the connection has been reset by the instance. The query will result in a SQLException. You have to close the connection and open a new one. The query works on an open connection only. That's the

RE: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: RE : Tomcat7 OutOFMemoryError Thread Stack Size (in Kbytes). (0 means use default stack size) [Sparc: 512; Solaris x86: 320 (was 256 prior in 5.0 and earlier); Sparc 64 bit: 1024; Linux amd64: 1024 (was 0 in 5.0

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Pid
On 05/03/2012 22:09, Christopher Schultz wrote: Pid, On 3/5/12 3:54 PM, Pid wrote: Varies by OS too. -XX:ThreadStackSize=512 Thread Stack Size (in Kbytes). (0 means use default stack size) [Sparc: 512; Solaris x86: 320 (was 256 prior in 5.0 and earlier); Sparc 64 bit: 1024; Linux

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Pid
On 05/03/2012 22:12, Christopher Schultz wrote: Chema, On 3/5/12 4:06 PM, Chema wrote: No if the connection has been reset by the instance. The query will result in a SQLException. You have to close the connection and open a new one. The query works on an open connection only. That's the

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/5/12 5:20 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: RE : Tomcat7 OutOFMemoryError Thread Stack Size (in Kbytes). (0 means use default stack size) [Sparc: 512;

Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 3/5/12 5:55 PM, Pid wrote: On 05/03/2012 22:12, Christopher Schultz wrote: Chema, On 3/5/12 4:06 PM, Chema wrote: No if the connection has been reset by the instance. The query will result in a SQLException. You have to close the

Proxypass Question

2012-03-05 Thread Truckman
Greetings, I'm not sure whether this is a tomcat6 issue or an apache issue, but I thought maybe I would start here if no one minds. We have a domain name and we have apache answering the door on both https(443) and http(80). What we'd like to do is proxypass port 443 to tomcat6, and have

Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-05 Thread Alex Samad - Yieldbroker
Hi This is my prod setup Client - Internet - IIS7.5/NLB (2 node cluster) with the 1.2.32 tomcat connector - 2 node tomcat cluster. We had done a fair bit of testing on this setup enough to move into production. But we ran into a problem ... when IIS recycle its application pool. Luckily we

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Rainer Frey
On 05.03.2012, at 14:14, Philippe ROUXEL wrote: When I set JAVA_OPTS= -Xmx1024m -Xss75m That means: each thread get a stack of 75MB. One of the following applies: * the operating system has a limit on thread stack size * the per process memory limit is reached before all initial tomcat

Re: Proxypass Question

2012-03-05 Thread Pid
Please start an entirely new thread, rather than replying to and editing an existing, already rather long and confusing thread[1]. p 1. Re: [Tomcat JDBC Pool] Close pooled connections via JMX signature.asc Description: OpenPGP digital signature

Re: RE : Tomcat7 OutOFMemoryError

2012-03-05 Thread Pid
On 06/03/2012 07:12, Rainer Frey wrote: On 05.03.2012, at 14:14, Philippe ROUXEL wrote: When I set JAVA_OPTS= -Xmx1024m -Xss75m That means: each thread get a stack of 75MB. One of the following applies: * the operating system has a limit on thread stack size * the per process memory