junedo/javamelody

opened jdbc connection and database links not available in report

Closed this issue · 5 comments

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
do not see the linksfor opened jdbc connections and Database  

What version of the product are you using? On what application server, JDK,
operating system?
javamelody 1.5.2.0 
apache-tomcat
jdk 6


Please provide any additional information below.


Original issue reported on code.google.com by praveenk...@gmail.com on 16 Sep 2014 at 11:40

First, read the user guide.
Then this issue is invalid, since you don't say in the issue what configuration 
is supposed to work, according to the user guide, but does not work.

Original comment by evernat@free.fr on 16 Sep 2014 at 12:28

  • Changed state: Invalid

hello, 

          I am not able to get this below mentioned feature enabled on Javamelody reports. Kindly reopen the ticket and help. 


'If a leak of jdbc connections is suspected, times and stack traces showing 
where connections have been opened can be displayed by the link 'Connexions 
Opened jdbc connections' in the 'System informations System informations' part 
of the report. (This link is available if the parameter 
'system-actions-enabled' has been set to 'true'). Careful reading of the code 
for these stack traces will confirm or not the jdbc connections leak.'  

Original comment by praveenk...@gmail.com on 17 Sep 2014 at 5:10

That's not enough.
Why would it be displayed? There's no magic, read the user guide.

Original comment by evernat@free.fr on 17 Sep 2014 at 7:54

thanks for the suggestion, I have red the user manual. there it is suggested to 
put an entry in web.xml as below, please help. 

 <filter>
                <filter-name>monitoring</filter-name>
                <filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
 </filter>
        <filter-mapping>
                <filter-name>monitoring</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>
        <listener>
                <listener-class>net.bull.javamelody.SessionListener</listener-class>
        </listener>

<context-param>
        <param-name>javamelody.system-actions-enabled</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>javamelody.sampling-seconds</param-name>
        <param-value>1</param-value>
    </context-param>
    <context-param>
        <param-name>javamelody.sampling-excluded-packages</param-name>
        <param-value>java,sun,com.sun,javax,org.apache,com.mysql</param-value>
    </context-param>
    <context-param>
        <param-name>javamelody.log</param-name>
        <param-value>true</param-value>
    </context-param>



Original comment by praveenk...@gmail.com on 17 Sep 2014 at 8:43

https://code.google.com/p/javamelody/wiki/UserGuide#7._JDBC

Original comment by evernat@free.fr on 18 Sep 2014 at 9:25