open-telemetry / open-telemetry/opentelemetry-java-contrib
JMX: Tomcat only collecting metrics from one listener at a time
Open
@SylvainJuge is already working on this.
Since Aug 4, 2025.
bug
component:jmx-metrics
- Dominant language
- Java
- Stars
- 269
- Forks
- 196
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 38
Description
Component(s)
jmx-metrics
What happened?
Description
If Tomcat has two listeners configured, one HTTP and one HTTPS, it will only gather metrics from the HTTP listener.
Steps to Reproduce
Configure Tomcat with a HTTP and HTTPS listener. It will only pull metrics from HTTP unless you disable the HTTP listener, then it will then pull metrics from the HTTPS listener.
Expected Result
It should get metrics from all the listeners, which I verified is visible through JConsole.
Actual Result
It only gets metrics from the http listener.
Component version
JMX v0.96.0, Java Contrib v1.28.0
Log output
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.