open-telemetry / open-telemetry/opentelemetry-java-contrib

JMX: Tomcat only collecting metrics from one listener at a time

Open
#1,236 3 comments 2 reactions 2 assignees View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.