-
Notifications
You must be signed in to change notification settings - Fork 73
Bean subscription #426
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
Open
scottopell
wants to merge
50
commits into
master
Choose a base branch
from
feat/bean-listener
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Bean subscription #426
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c6c4270 to
75d9296
Compare
scottopell
commented
Apr 17, 2023
scottopell
commented
Apr 17, 2023
|
carlosroman
reviewed
Jun 5, 2023
| return; | ||
| } | ||
| MBeanServerNotification mbs = (MBeanServerNotification) notification; | ||
| queue.offer(mbs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to do anything here if we get false back? Maybe log/warn we couldn't add the MBeanServerNotification?
# Conflicts: # tools/misbehaving-jmx-server/README.md
b93caeb to
79ce047
Compare
…ReconnectContainer
# Conflicts: # src/main/java/org/datadog/jmxfetch/Instance.java # src/main/java/org/datadog/jmxfetch/JmxAttribute.java # src/test/java/org/datadog/jmxfetch/TestCommon.java
apigirl
reviewed
Dec 28, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
editorial feedback
Co-authored-by: Kaylyn <[email protected]>
# Conflicts: # src/main/java/org/datadog/jmxfetch/App.java
…tion-level config
# Conflicts: # src/test/java/org/datadog/jmxfetch/TestCommon.java
# Conflicts: # src/main/java/org/datadog/jmxfetch/App.java # src/main/java/org/datadog/jmxfetch/Instance.java
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
eCurrently there is a periodic refresh of the beans (and their attributes) which can result in CPU spikes as these remote RMI calls are expensive.
This PR implements a "subscription mode" for instances where a
javax.management.NotificationListeneris used to subscribe to bean registration/unregistration events.This approach should spread out the expensive RMI calls over time and will reduce the total amount of calls needed.
Status @ Feb 8 2024:
This branch is showing flakey tests, so they need to be investigated before this can be merged.
Once this branch is clean, I intend to merge this and publish a SNAPSHOT build which can be used in nightly agent builds to get validation. This agent branch is required before the snapshot/nightly.
Latest flakey report:
Ran 2000 times, 4 failures found