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

Agents Page Memory Leak Fix #3217

Merged
merged 2 commits into from
Mar 2, 2017

Conversation

GaneshSPatil
Copy link
Contributor

@GaneshSPatil GaneshSPatil commented Mar 1, 2017

Pass resolver which specifies the key to be cached for the given agent

Not passing key to the memoize method will take object reference as key by default.
Whereas on each poll we create a new agent object, and the memoize treats the newly created agent object as a new agent and will cache it separately.
This was causing memoize to cache all the objects leading to memory overflow.

Not passing key to the memoize method will take object reference as key by default.
Whereas on each poll we create a new agent object, and the memoize treats the newly created agent object as a new agent and will cache it seperately.
This was causing memoize to cache all the objects leading to memory overflow.
@GaneshSPatil GaneshSPatil changed the title Pass resolver which specifies the key to be cached for the given agent Agents Page Memory Leak Fix Mar 1, 2017
@ketan ketan merged commit 6cd3561 into gocd:master Mar 2, 2017
@ketan ketan removed the in progress label Mar 2, 2017
@ketan ketan added this to the Release 17.3 milestone Mar 2, 2017
@GaneshSPatil
Copy link
Contributor Author

fixes #3187

@jyotisingh jyotisingh added this to the Release 17.3 milestone Mar 24, 2017
@GaneshSPatil GaneshSPatil deleted the agents-page-memory-leak-fix branch February 7, 2018 10:12
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.

4 participants