Skip to content

Conversation

@dill21yu
Copy link
Contributor

Purpose of the pull request

close #17173

Brief change log

In the BaseHeartBeat model, add fields for JVM heap memory and non-heap memory usage and maximum values. Modify MasterHeartBeatTask and WorkerHeartBeatTask to collect and report these metrics. Update DefaultMetricsProvider to accurately calculate and provide JVM heap and non-heap memory usage and maximum values. Add corresponding fields in SystemMetrics to store these metrics.

Verify this pull request

This pull request is already covered by existing tests, such as MasterServerLoadProtectionTest、WorkerServerLoadProtectionTest.

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@boring-cyborg
Copy link

boring-cyborg bot commented May 13, 2025

@dill21yu dill21yu changed the title Optimize JVM memory monitoring metrics [Fix-17173] [JVM Metrics] Fix JVM memory monitoring metrics May 13, 2025
@SbloodyS SbloodyS added bug Something isn't working first time contributor First-time contributor labels May 13, 2025
@SbloodyS SbloodyS added this to the 3.3.1 milestone May 13, 2025
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

LGTM.

@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@dill21yu
Copy link
Contributor Author

Please help review the code @ruanwenjun @Gallardot @EricGao888 @caishunfeng

Copy link
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

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

LGTM

@ruanwenjun ruanwenjun merged commit b9bd779 into apache:dev May 14, 2025
70 of 71 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented May 14, 2025

Awesome work, congrats on your first merged pull request!

davidzollo pushed a commit to davidzollo/dolphinscheduler that referenced this pull request Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend bug Something isn't working first time contributor First-time contributor priority:high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [JVM Metrics] Incorrect Memory Usage Calculation Causes False Master Overload Detection

3 participants