Skip to content

Conversation

@UweTrottmann
Copy link
Owner

@UweTrottmann UweTrottmann commented Jun 15, 2023

The check call of Client appears to be leaking memory.

Turns out the out Queue of CheckRequestAggregator is filled with expired cache entries. But as it is never flushed (which would be pointless anyhow as check requests are already sent before a request) as the scheduler background thread does not work on App Engine Standard this will leak a CheckResponse for each user making a request.

This removes the out queue completely from CheckRequestAggregator which never really aggregated anything, but only cached check request responses. Now it will only cache check request responses.

@UweTrottmann UweTrottmann changed the base branch from master to fix-java-11-ipv6-format June 15, 2023 15:47
@UweTrottmann UweTrottmann force-pushed the fix-memory-leaks branch 2 times, most recently from a875783 to ff4fe8a Compare June 16, 2023 10:30
@UweTrottmann UweTrottmann force-pushed the fix-java-11-ipv6-format branch from 4713832 to 973d803 Compare August 24, 2023 09:01
@UweTrottmann UweTrottmann force-pushed the fix-java-11-ipv6-format branch from 973d803 to 8646c41 Compare August 30, 2023 16:16
Check requests are already sent when doing a request. Even if it would
work on App Engine (no background threads allowed), there is no point in
sending check requests again at some later point.

Check requests are still cached (and expired).
@UweTrottmann UweTrottmann deleted the branch fix-java-11-ipv6-format August 30, 2023 16:19
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.

2 participants