Skip to content

Conversation

@laurit
Copy link
Contributor

@laurit laurit commented Apr 17, 2024

Resolves #11143
Calling ManagementFactory.getPlatformMBeanServer() initializes java.util.logging.LogManager. This prevents wildfly from starting because it wants to use a custom LogManager implementation, but can't replace it because java.util.logging is already initialized. This PR adds a delay to calling ManagementFactory.getPlatformMBeanServer() which should allow wildfly to set up its logging before this call happens.

@laurit laurit requested review from a team and PeterF778 April 17, 2024 08:28
Copy link
Contributor

@PeterF778 PeterF778 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this.

@laurit laurit force-pushed the jmx-metrics-delay branch from e44c71f to c499d44 Compare April 18, 2024 12:45
@laurit laurit merged commit 8de3f0e into open-telemetry:main Apr 30, 2024
@laurit laurit deleted the jmx-metrics-delay branch April 30, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wildfly crashes when using "OpenTelemetry auto-instrumentation Java agent" with the Module "JMX Metric Insights"

3 participants