Skip to content

Conversation

@DenineLu
Copy link
Contributor

@DenineLu DenineLu commented Jul 9, 2025

What changes were proposed in this pull request?

Follow #45052

When we modify the memory configuration in the plugin, the new configuration cannot be updated to the defaultResourceProfile because it is initialized before the plugin is loaded.

For example, the initial spark.executor.memory is set to 8g, but after our plugin processes it, the value is adjusted to 2g. However, the executor's JVM launch parameter (-Xmx) still defaults to 8g according resource profile, which could lead to OOM kills due to onheap memory RSS usage exceeds expectations.

So, the ResourceProfileManager should be initilized after plugin loaded.

Why are the changes needed?

Make memory configuration changes in plugins take effect at the resource profile.

Does this PR introduce any user-facing change?

No

How was this patch tested?

ut

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the CORE label Jul 9, 2025
@TongWei1105
Copy link
Contributor

Could you all please review this PR when you have time? Many thanks!
@wangyum @cloud-fan

Copy link
Member

@wangyum wangyum left a comment

Choose a reason for hiding this comment

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

LGTM

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 57eccea Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants