tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Hausberger" <CHausber...@gmx.de>
Subject Re: Problem with too many open db connections on Tomcat
Date Fri, 01 Apr 2011 12:38:14 GMT

-------- Original-Nachricht --------
> Datum: Fri, 01 Apr 2011 12:44:28 +0100
> Von: Mark Thomas <markt@apache.org>
> An: Tomcat Users List <users@tomcat.apache.org>
> Betreff: Re: Problem with too many open db connections on Tomcat

> On 01/04/2011 12:36, Claus Hausberger wrote:
> > Hello,
> > 
> > I have a problem with Tomcat and open connections to an Oracle 11g
> database.
> > 
> > I use Tomcat 5.5, DBCP 1.2 and Hibernate 3.3 + Spring for DB
> connections.
> > For political reasons I can not upgrade to new Tomcat versions at the
> moment.
> > 
> > I have 7 deployed apps on the Tomcat. 4 user a datasource configured for
> Tomcat itself (in context.xml) with a setting of maxActiv=20. This
> datasource is used by Hibernate via JNDI.
> 
> Which context.xml file? Exactly where is it located?
> 
> Mark
> 

Hi Mark,

the file is in the Tomcat folder under:

conf/context.xml

this is the config:

<Resource name="jdbc/myDS" auth="Container"
    	type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
	url="jdbc:oracle:thin:@my-oracle-host:mysid" username="xxx"
	password="XXX" maxActive="20" maxIdle="10" maxWait="-1"
    />


regards,

Claus


> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message