Git Product home page Git Product logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
That would be a great enhancement.
Could you make a patch? Thanks

Dev guide: http://code.google.com/p/javamelody/wiki/DevGuide

Original comment by [email protected] on 22 Jun 2010 at 9:50

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
It's possible to use tomcat jdbc pool with javamelody without a patch:

      Properties props = new Properties();
      props.setProperty("driver", YOUR_REAL_JDBC_DRIVER_CLASS);

      org.apache.tomcat.jdbc.pool.DataSource datasource = null;
      PoolConfiguration p = new PoolProperties();
      p.setDriverClassName("net.bull.javamelody.JdbcDriver");
      p.setDbProperties(props);
      p.setUsername("dbuser");
      p.setPassword("dbpass");
      p.setUrl("dburl");
      datasource = new org.apache.tomcat.jdbc.pool.DataSource();
      datasource.setPoolProperties(p);
      ConnectionPool pool = datasource.createPool();

Original comment by [email protected] on 22 Feb 2012 at 12:15

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
@mineral_wasser
I think that you were misguided by the title of this issue.
I suppose that monitoring the connections of the tomcat jdbc pool was always 
supported,
either by using the default monitoring of jdbc datasources from JNDI,
or by using the javamelody JdbcDriver as you have written.
See http://code.google.com/p/javamelody/wiki/UserGuide#7._JDBC if needed

But given the description of the issue, the reporter wanted in fact that 
javamelody displays the specific configuration of the tomcat jdbc pool (max 
open connections, max open prepared statements, validation queries, etc), 
because javamelody displays these specific configuration for the tomcat DBCP 
pool, but javamelody does not currently display the same specific configuration 
for the newer tomcat jdbc pool.

http://code.google.com/p/javamelody/source/browse/trunk/javamelody-core/src/main
/java/net/bull/javamelody/JdbcWrapperHelper.java#248

Original comment by [email protected] on 22 Feb 2012 at 5:00

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
Ah, I see.
Thanks for the clarification, evernat!
(I would also love to see this)

Another thing - I think it would be better to use jdbc pools JDBCInterceptors 
to "hook" into jdbc call than a using a JDBC Proxy driver, which feels a little 
bit more dangerous. 

Original comment by [email protected] on 22 Feb 2012 at 5:12

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
The enhancement is now done in trunk (revision 2747) and ready for the next 
release (1.37). It will display the properties of the Tomcat jdbc datasources 
in System informations like for Tomcat DBCP, in particular it will display the 
max number of active connections next to the current number of active 
connections.

If you want to test it before the next release, I have made a new build which 
is available at:
http://javamelody.googlecode.com/files/javamelody-20120419.jar

Original comment by [email protected] on 19 Apr 2012 at 9:28

  • Changed state: Fixed

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
My App has a tomcat jdbc connection pool deployed over tomcat7.I am unable to 
see "active jdbc connections","used jdbc connections" and sql hits using java 
melody.Any help will appreciated.

Original comment by [email protected] on 17 Feb 2014 at 1:37

from javamelody.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 14, 2024
@megha
This issue has nothing to do with what you said.

Original comment by [email protected] on 17 Feb 2014 at 8:06

from javamelody.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.