Comments (7)
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.
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.
@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.
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.
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.
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.
@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)
- Cross Site Scripting HOT 12
- JavaMelody PDF Report: Customizing Content of generated PDF Report HOT 2
- Hazelcast Issue HOT 6
- java.lang.NoClassDefFoundError: org/jrobin/core/RrdException HOT 2
- Is it possible to run it on a Minecraft 1.18.2 Fabric server with OpenJ9 JVM? HOT 1
- Latest IBM Java 8 SDK breaks JavaMelody: MBeansAccessor.getThreadAllocatedBytes throws UnsupportedOperationException HOT 6
- Auto registrating in optional collector in spring-boot-starter HOT 2
- InfluxDB 2.X (Auth) Support HOT 3
- Unable to expand to get more details
- Persist statistics data to database HOT 1
- Javamelody 2.0.1/Jakarta EE 10/Java 17 HOT 8
- MBeans view on JBoss/WildFly leads to OutOfMemoryError HOT 2
- Exception NoClassDefFoundError (HttpSessionListener) when trying to start Tomcat HOT 2
- License called "ASL" HOT 4
- Unable to Delete Cache Entries after Upgrading to Spring Boot 3.2.1 with EhCache 3.10.8 and JavaMelody 2.0.1 with JCaheManager
- Question about sending alerts HOT 3
- Kubernetes. Is there a way to save the data to a fixed storage directory? HOT 2
- Collect Server War uses highly vulnerable version of Jackson Databind HOT 5
- Error 500 from Confluence DC 8.7.2 HOT 2
- JavaMelodyDisabledAutoConfiguration turns off MonitoringFilter in every webapp (if many are deployed) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javamelody.