DBCP inconsistency

2005-04-18 Thread henrik rathje
Hi, i am using the tomcat 5.0.27 distribution. After several days of uptime the DBCP seems to run odd: org.apache.commons.dbcp.BasicDataSource.getNumActive() ==> 4 org.apache.commons.dbcp.BasicDataSource.getNumIdle() ==> 1 org.apache.commons.dbcp.BasicDataSource.getMaxActive() ==> 10 org.apache.c

org.apache.tomcat.util.threads.ThreadPool logFull

2005-03-17 Thread Henrik Rathje
Hi, I am running a Servlet on a Tomcat 5.0.30 Instance. This Servlets gets < 500 Hits a day. After approx. 10 days Tomcat doesn't reply anymore - the logs say: Mar 15, 2005 6:53:11 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (50) are currently busy, waiting. Increase m

Re: DBCP Performance -> solved.

2004-09-10 Thread Henrik Rathje
:16:18 -0500 Peter Lin <[EMAIL PROTECTED]> wrote: > I used oracle's drivers :) > > since I'm most experienced with Oracle and I have it installed at home > for development. > > peter > > > On Fri, 10 Sep 2004 19:11:53 +0200, Henrik Rathje <[EMAIL

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
> peter > > > On Fri, 10 Sep 2004 18:56:42 +0200, Henrik Rathje <[EMAIL PROTECTED]> wrote: > > I have to correct myself: > > getNumIdle() returned 19 after a little bit of waiting. > > but getConnection( ) still takes 1238 miliseconds. > > Henrik &

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
I have to correct myself: getNumIdle() returned 19 after a little bit of waiting. but getConnection( ) still takes 1238 miliseconds. Henrik On Fri, 10 Sep 2004 18:47:46 +0200 Henrik Rathje <[EMAIL PROTECTED]> wrote: > Hi, > I tried your settings, but getNumIdle() still returns 0

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
I > think the maxActive 0 effectively means no pooling. > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Henrik Rathje [mailto:[EMAIL PROTECTED] > >Sent: Friday, September 10, 2004 12:20 PM > >To: Tomcat Users List

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
Idle on it to verify it's a positive number before calling > getConnection. If it's zero or negative your pool is misconfigured and > you're creating a new connection, hence the slow performance. > > Yoav Shapira > Millennium Research Informatics > > >

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
defeats the purpose of pooling. If your pool is properly configured and > has a connection waiting, it should be a little bit more than a hash > lookup to return the connection, which would be significantly faster > than creating a new one. > > Yoav Shapira > Millennium Resear

DBCP Performance?

2004-09-10 Thread Henrik Rathje
Hi, has enyone of you recently measured the performance of the DBCP Connection Pool? I compared long start = System.currentTimeMillis(); Class.forName("ca.edbc.jdbc.EdbcDriver"); Connection dbcon = DriverManager.getConnection(loginUrl, loginUser, loginPa$ long diff = System.currentTimeMillis() -

Re: unexpected timeout during benchmark

2004-09-09 Thread Henrik Rathje
ue > is full? Check your Connector configuration and increase these > parameters if needed to allow your test to complete. > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Henrik Rathje [mailto:[EMAIL PROTECTED] &g

unexpected timeout during benchmark

2004-09-09 Thread Henrik Rathje
Hi, I want to measure the performance of a Servlet that I wrote. To have a number to compare with i wrote a servlet which does only a single println in its doget method. When i measure the throughput of this servlet with ab using this arguments: ab -n 2 -c 10 http://localhost:8080/Messung1/T

Controlling access to j_security_check

2004-07-03 Thread Henrik Rathje
Hi! I want to limt access to j_security_check. If there have been a certain number of requests to j_security_check with one j_username and some invalid j_password, the following requests to j_security_check with the same j_username shold be redirected to another page where the user has to do some

DataSourceRealm

2004-06-27 Thread Henrik Rathje
Hi! I am trying to get a DataSourceRealm running. I followed the instruction in tomcat-docs/realm-howto.html#DataSourceRealm, but as soon as i "login" i get DataSourceRealm[/secutity-example]: Exception performing authentication javax.naming.NameNotFoundException: Name jdbc is not bound in this C