Skip to content

Rollback the change to use lambdas in Config Proxies. - #685

Merged
rgallardo-netflix merged 1 commit into
Netflix:2.xfrom
rgallardo-netflix:rollback-lambdas-in-proxies
Oct 10, 2023
Merged

rgallardo-netflix merged 1 commit into
Netflix:2.xfrom
rgallardo-netflix:rollback-lambdas-in-proxies

Conversation

@rgallardo-netflix

Copy link
Copy Markdown
Contributor

The use of lambdas to call default methods in Config proxy interfaces surfaced memory leaks in applications that leak configuration proxies.

Because the lambdas live in the JVMs metaspace, which is often configured to a much smaller max size than the heap, the leaking proxies have a much higher chance of causing OOM errors.

We are therefore rolling back this change temporarily, while we investigate a way to re-implement it in a way that reduces the issues.

The use of lambdas to call default methods in Config proxy interfaces surfaced memory leaks in applications that leak configuration proxies.

Because the lambdas live in the JVMs metaspace, which is often configured to a much smaller max size than the heap, the leaking proxies have a much higher chance of causing OOM errors.

We are therefore rolling back this change temporarily, while we investigate a way to re-implement it in a way that reduces the issues.
@rgallardo-netflix
rgallardo-netflix merged commit f52ab93 into Netflix:2.x Oct 10, 2023
@rgallardo-netflix
rgallardo-netflix deleted the rollback-lambdas-in-proxies branch October 10, 2023 21:48
rgallardo-netflix added a commit to rgallardo-netflix/archaius that referenced this pull request Oct 11, 2023
…xies

This is a re-factor of the code reverted in PR Netflix#685, originally by @kilink
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.

1 participant