How many ds connection (database side)? 200 sounds high (too much locks in dbcp)
Did you try the snapshot to use tomcat-jdbc instead of commons-dbcp? Le 21 sept. 2012 19:11, "almos" <[email protected]> a écrit : > Hm. > > Here is DataSource configuration in TomEE > > <Resource id="BMMDataSource" type="javax.sql.DataSource"> > JdbcDriver = org.postgresql.Driver > JdbcUrl = jdbc:postgresql://localhost:5432/datasource > UserName = user > Password = password > InitialSize = 20 > MaxActive = 200 > ValidationQuery = SELECT 1 > JtaManaged = true > </Resource> > > Here is datasource retirieval in Spring > > <jee:jndi-lookup id="jdbcDataSource" > jndi-name="openejb:Resource/BMMDataSource"/> > > > This is how create jdbctemplate instance: > > public RdbmsDAOFactory(DataSource ds) { > jdbcTemplate = new JdbcTemplate(ds); > } > > What I might be missing? > I am planning to switch to CDI instead of Spring but anyways it's > interesting to know where I am wrong. > > Thanks. > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/tomee-xml-configuration-for-high-load-tp4657577p4657590.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
