Stats MBean for DBCP DataSources
Hello, I was thinking of writing DBCP DataSource stats MBean for the purpose of exposing the metrics methods inherent in the DBCP BasicDataSource class (getNumIdle(), getMaxActive(), etc.). Before I venture down that road, is this already on the drawing board anywhere? Has anyone else done it already? I sure don't want to reinvent the wheel, but being able to access these stats via JMX is something that we very much want to do. Thanks, -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stats MBean for DBCP DataSources
On Wed, 2 Apr 2003, Halstead, Chris wrote: Date: Wed, 2 Apr 2003 15:07:53 -0500 From: Halstead, Chris [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Stats MBean for DBCP DataSources Hello, I was thinking of writing DBCP DataSource stats MBean for the purpose of exposing the metrics methods inherent in the DBCP BasicDataSource class (getNumIdle(), getMaxActive(), etc.). Before I venture down that road, is this already on the drawing board anywhere? Has anyone else done it already? I sure don't want to reinvent the wheel, but being able to access these stats via JMX is something that we very much want to do. I don't know of any plans, but think this would be a good idea. You might also want to propose a patch to commons-dbcp (where BasicDataSource comes from) to add some counters for things like how many connections have been handed out, average time, or whatever else would be interesting. Thanks, -chris Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Stats MBean for DBCP DataSources
Thanks Craig. Adding those type of counters to BasicDataSource would be a great help. I'll make a note to suggest them on the DBCP side. -chris -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 5:03 PM To: Tomcat Users List Subject: Re: Stats MBean for DBCP DataSources On Wed, 2 Apr 2003, Halstead, Chris wrote: Date: Wed, 2 Apr 2003 15:07:53 -0500 From: Halstead, Chris [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Stats MBean for DBCP DataSources Hello, I was thinking of writing DBCP DataSource stats MBean for the purpose of exposing the metrics methods inherent in the DBCP BasicDataSource class (getNumIdle(), getMaxActive(), etc.). Before I venture down that road, is this already on the drawing board anywhere? Has anyone else done it already? I sure don't want to reinvent the wheel, but being able to access these stats via JMX is something that we very much want to do. I don't know of any plans, but think this would be a good idea. You might also want to propose a patch to commons-dbcp (where BasicDataSource comes from) to add some counters for things like how many connections have been handed out, average time, or whatever else would be interesting. Thanks, -chris Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]