Tomcat hangs with lots of DBCP Object.wait processes

2005-10-14 Thread Richard Mixon
I have a customer running Tomcat 4.0.18. About twice a week their system is locking up - obviously we don't know why or I would not be asking. Symptoms 1) CPU usage per TOP is not very high. 2) When requesting the main web page, the page goes white and never returns. When this happened yesterday

RE: Suppress Connection reset by peer: socket write error.

2005-10-14 Thread Dola Woolfe
Hi Robert, What a truly fantastic answer! Very detailed and educational. Your timeis deeply appreciated. What I'd like to know is: do I have to do it in every JSP (I have hundreds). And is there a configuration solution as was alluded by Bill previously? Once again, very many thanks!!! Dola

RE: Suppress Connection reset by peer: socket write error.

2005-10-14 Thread Robert Graf-Waczenski
Hi Dola, right off of my head, i can't come up with a smart configuration solution that would selectively swallow the message as our approach does. Our app has two shared JSPs that are included in every JSP, one at the top and one at the bottom. The top-included JSP opens the try block (making it

RE: Tomcat hangs with lots of DBCP Object.wait processes

2005-10-14 Thread Richard Mixon
One thing I forgot, that might be relevant. Another Tomcat instance on the server continued to function just fine. It also accesses a different MySQL database, but its served by the same MySQL instance. - Richard -Original Message- From: Richard Mixon [mailto:[EMAIL PROTECTED] Sent:

RES: Tomcat Log4j Log Level Configuration

2005-10-14 Thread Paulo Alvim
Hi Jojo, I'm with the same problem: I'd like to change the log level e also the appender configurations without redeploy my war (my log4j.properties file is bundled into the web-inf/classes)... I have thought about a few - not very good - approaches (of course the best one would be an out-of-box

where do the access and error logs go

2005-10-14 Thread Christoph P. Kukulies
I installed 5.5.9 and in the course of debugging some opencms stuff I'm wondering where access and error logs go when the jk connector is used - that is, when tomcat fulfills the request. Then I would not expect the error caused by an inaccessible resource to be logged in apache2\logs but rather

RE: Tomcat hangs with lots of DBCP Object.wait processes

2005-10-14 Thread James W. Anderson
Is the Tomcat instance making connections to MySQL? Have you checked MySQL to see if there are an abnormally large number of connections at the time Tomcat fails? Do the MySQL logs tell you anything that suggests some of these threads/sessions might be deadlocked? -Original Message-

Tracking open database connections in a pool

2005-10-14 Thread Dhiren Bhatia
Hi, Is there any way to know how many open connections are in the database connection pool? I'd like to know how many connections are active/idle at any point in time. I'm using the javax.sql.DataSource with the MySQL JDBC driver. Tomcat version 5.5.9. Thanks, Dhiren

Re: secure application using Tomcat

2005-10-14 Thread Mark
I would recommend placing Apache in front of Tomcat. You can also use mod_security on Apache to further lock down your application. I have found that if you want security, do not use Tomcat by itself. I never liked the idea of placing keystore passwords in XML files. At least Apache prompts you

RES: RES: Tomcat Log4j Log Level Configuration

2005-10-14 Thread Paulo Alvim
Thank you, Jess... I'm now trying to use the (log4j) ConfigurationServlet in order to learn more about these problems...the information bellow is very usefull! Alvim. -Mensagem original- De: Jess Holle [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 14 de outubro de 2005 10:05 Para:

RE: can JNDIRealm connectionPassword be encrypted?

2005-10-14 Thread Caldarale, Charles R
From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] Subject: RE: can JNDIRealm connectionPassword be encrypted? To me and my co-workers that login still represents a large security risk if someone can gain access to the file server.xml. If someone can gain access to server.xml, you

RE: can JNDIRealm connectionPassword be encrypted?

2005-10-14 Thread Caldarale, Charles R
From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] Subject: RE: can JNDIRealm connectionPassword be encrypted? Right now we have the tomcat instance running as a tomcat:tomcat user and group. And, I hope, you have permissions for everything in Tomcat's directories set to 750, and very, very

JDBCRealm logout and welcome page

2005-10-14 Thread 梁炳場
After logout with JDBCRealm FORM and if the welcome page stays within the webapp, is it possible? I wonder when the welcome page is within the webapp, JDBCRealm will ask the username and password, but after logout, welcome page within the webapp should not be asked for username and password.