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.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

DBCP Performance?

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

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
- From: Henrik Rathje [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 11:16 AM To: [EMAIL PROTECTED] Subject: DBCP Performance? Hi, has enyone of you recently measured the performance of the DBCP Connection Pool? I compared snip long start = System.currentTimeMillis

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
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 -Original Message- From: Henrik Rathje [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 11:46 AM

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
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 Subject: Re: DBCP Performance? Hi, seems you are rite

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. Why

Re: DBCP Performance?

2004-09-10 Thread Henrik Rathje
, 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 On Fri, 10 Sep 2004 18:47:46 +0200 Henrik Rathje [EMAIL PROTECTED] wrote: Hi, I tried your

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 PROTECTED] wrote: hi, im note sure if there exists

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

Re: unexpected timeout during benchmark

2004-09-09 Thread Henrik Rathje
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] Sent: Thursday, September 09, 2004 12:05 PM To: [EMAIL PROTECTED] Subject

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