-
-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL graphs not recording sql queries on Spring Boot Application, Tomcat 10 #1155
Comments
I see that sql queries are not monitored. There are several strange things:
So I suggest to use the javamelody-spring-boot-starter as a dependency of your app. Note that with the javamelody-spring-boot-starter, the datasources declared in Spring's context don't need to be declared in JNDI to be monitored. But you can still declare them in JNDI if you want. Does it work for you? Otherwise, can you give the source of a sample project using Maven to reproduce the issue? |
Thanks for the response @evernat ! I have tried the following:
I believe now it is only loaded in once.... but still the same issue. I will see if I can get a small version of the application to you
I also have a javamelodyConfig file as definded hereL |
yes. And the javamelody-spring-boot-starter already has its own JavaMelodyAutoConfiguration.
yes, thank you |
So I am working with my team and we have a few questions to gain an understanding of the app set up with regards to Sping boot: What all JAR files are required to make the application work? |
As said in the javamelody Spring Boot page, if you use Maven (or Gradle), then you need only one dependency on javamelody-spring-boot-starter :
Maven puts all dependencies in WEB-INF/lib if you make a war file. Or it puts all dependencies in BOOT-INF/lib if you make a runnable jar with Spring Boot.
just the Maven dependency as said in the Spring Boot page above. It has an auto-configuration to initialize itself. |
it's ok for you now ? |
Still having the same issue. I would love to try to reproduce it with a small build, but I have not found the time. |
still no simple project to reproduce, so closing |
Versions:
JavaMelody 1.92.0
Tomcat 10.1.5
OpenJDK Runtime Environment, 17.0.6+10-LTS
Hello,
I have and application that is used within Tomcat, that has its datasources stored within a context.xml file. The application is Spring Boot, and for some reason the sql queries after hitting an endpoint is not being shown on the graph. There is no indication of errors in the debug logs of Java Melody. I have a Config class within my Spring application.
Also we did have only one type of query be recorded here:
This query occurs when accessing the database statistics link within the JavaMelody homepage
The text was updated successfully, but these errors were encountered: