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

op-challenger: Release agent resources once game is complete #11820

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

ajsutton
Copy link
Contributor

Description

When a player detects that a game is now complete, replace the act function with a no-op so that the agent resources (including the trace provider etc) can be GC'd. We already use a no-op act function for games that are completed when the challenger first starts up. Without this the agent resources are only released when the game drops out of the game window after 28 days which makes it look like the challenger has a memory leak as memory increases for the first 28 days of operation before levelling out.

Tests

Updated unit tests.

Metadata

@ajsutton ajsutton requested review from a team as code owners September 10, 2024 01:05
@ajsutton ajsutton requested review from tynes and Inphi and removed request for tynes September 10, 2024 01:05
Copy link
Contributor

@Inphi Inphi left a comment

Choose a reason for hiding this comment

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

Good find!

@ajsutton ajsutton added this pull request to the merge queue Sep 10, 2024
Merged via the queue into develop with commit dc5cf52 Sep 10, 2024
59 checks passed
@ajsutton ajsutton deleted the aj/challenger-release-agent branch September 10, 2024 01:34
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.

op-challenger memory leak
2 participants