Tomcat 7, jdbc connections aren't monitored
See original GitHub issueHi We have tomcat 7.0.42. I read the manual I don’t understand if our configuration is correct for javamelody “auto-discovery”:
/home/folium/folium-prod/apache-tomcat-7.0.42/conf/context.xml
<Resource name="jdbc/folium"
url="jdbc:postgresql://postgresqldb:5432/folium"
/home/folium/folium-prod/local-conf.xml
<data-service jndi-enabled="true" jndi-position="java:/comp/env/jdbc/folium" />
/home/folium/folium-prod/webapp/WEB-INF/enti/ATSBergamo/data-service-conf.xml
<jndi-position>java:/comp/env/jdbc/folium</jndi-position>
Questions:
-
context.xml : is it correct url=“jdbc:postgresql://…” or is it better url=“jdbc://…” ?
-
local-conf.xml : is it correct jndi-position=“java:/comp/…” or is it better jndi-position=“java:comp/…”
-
should I add this java parameter ? -Djavamelody.datasources=java:comp/env/jdbc/folium
Best regards, Sala
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Apache Tomcat 7 (7.0.109) - The Tomcat JDBC Connection Pool
You can use interceptors to gather query stats, cache session states, reconnect the connection upon failures, retry queries, cache query results, and so...
Read more >monitor JDBC connections - tomcat - Stack Overflow
I am trying to monitor JDBC connections in tomcat using JMX. But it is giving information only regarding the Datasource resources, ...
Read more >Monitor Tomcat-JDBC connections - java - Server Fault
Monitoring the Tomcat containers is simple using Nagios. The problem is that the front page of the site will show up but the...
Read more >How to Monitor a Tomcat JDBC Connection pool from a ...
With this example you can find out the active, idle connections, etc. from a tomcat connection pool. This is very useful to know...
Read more >Unable to view jdbc connections and sql hits for tomcat jdbc ...
My App has tomcat jdbc connection pool deployed over tomcat 7 .I am unable to view the jdbc ... <filter-name>monitoring</filter-name>.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I added the listener to the start of the web.xml, as suggested, and now the reports are OK. Many thanks for your support.
Yes, we have this file
/home/folium/folium-prod/webapp/WEB-INF/web.xml
but it doesn’t list any listener, so I don’t know if / how to modify it.