Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 34495 invoked from network); 10 Jan 2003 23:05:02 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Jan 2003 23:05:02 -0000 Received: (qmail 25351 invoked by uid 97); 10 Jan 2003 23:05:53 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 25333 invoked by uid 97); 10 Jan 2003 23:05:52 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 25321 invoked by uid 98); 10 Jan 2003 23:05:51 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <35271.10.1.86.1.1042241782.squirrel@www.la-rubber.com> Date: Fri, 10 Jan 2003 15:36:22 -0800 (PST) Subject: Re: help - tomcat/dbcp deployment From: "David Durst" To: In-Reply-To: References: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Reply-To: ddurst@larubber.com X-Mailer: SquirrelMail (version 1.2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > Hi, > > I developed a web-app consisting mostly of servlets and JSP, almost no > static content. The application uses mysql and obtains connections from > a dbcp connection pool. > > Now I'm deploying it for production on Linux (RedHat 7.2) in a tomcat > standalone configuration. (Almost no static content, no cgi, no virtual > hosts, no clustering, so I decided Apache httpd is not really needed.) > > It works pretty good for some time but ... The next morning the server > is up and running but I can't obtain connection. When I'm trying to > login into the app, the LoginServlet which is supposed to get a > connection from the pool gives me an exception. Unfortunately, I can't > show it here now, because I didn't copy it, and it will appear next time > only tomorrow. But it reports something like Connection Failure, so it > looks like a > connection cannot be obtained from the pool. > > I'm quite positive that all my ResultSet's, Statement's and Connection's > are closed in all appropriate places, and I'm also using > 'removeAbandoned' in the server.xml descriptor. > > What can be the source of this problem? > > Also, immediately after my tomcat server is started, I lookup the > running processes ( ps -ux ) and see that 25 JVM's is launched. Why so > many? Is this normal? And what scares me is that all of those 25 JVM's > are using 6% of memory each ( 25*6% > 100% ! ). At least this is what > the ps command shows. Can anybody shed some light on this? > > Is DBCP good for production? I configured it exactly as the Tomcat docs > instruct. > > I will appreciate any comments and advices. > > Thank you. Wow! you actually got DBCP working!!!! What version of tomcat are you using??? -- To unsubscribe, e-mail: For additional commands, e-mail: