Skip to content
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

JMX should be disabled by default #1229

Closed
jvz opened this issue Jan 27, 2023 · 1 comment
Closed

JMX should be disabled by default #1229

jvz opened this issue Jan 27, 2023 · 1 comment
Labels
enhancement Additions or updates to features
Milestone

Comments

@jvz
Copy link
Member

jvz commented Jan 27, 2023

Description

JMX is an older API from Java for recording various metrics and publishing them along with other remote management features. It seems as though the JDK Flight Recorder API would be more appropriate to use in 3.x, though in the meantime, it would be nice to make JMX usage opt-in as it increases the time for a cold app start and is otherwise less commonly used these days thanks to things like JFR.

If disabling JMX entirely seems too drastic, then the JMX functionality that exists in Log4j should be broken up into more fine-grained feature flags to allow for selective use of it.

@jvz jvz added the enhancement Additions or updates to features label Jan 27, 2023
@jvz jvz added this to the 2.20.0 milestone Jan 27, 2023
ppkarwasz added a commit to ppkarwasz/logging-log4j2 that referenced this issue Feb 2, 2023
This PR introduces a `log4j2.jmxReadOnly` property with a default value
of `true` that disables all JMX setters. This solves apache#1229.
@ppkarwasz ppkarwasz modified the milestones: 2.20.0, 2.x Oct 23, 2023
@sdavids
Copy link
Contributor

sdavids commented Apr 13, 2024

#2468

@ppkarwasz ppkarwasz modified the milestones: 2.x, 2.24.0 Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additions or updates to features
Projects
None yet
Development

No branches or pull requests

3 participants