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

fix(threading): Run manual garbage collection #9581

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

ChristophWurst
Copy link
Member

Threading always has to load a lot of data. It naturally needs a lot of memory. This explicitly frees the variables once they are no longer needed and triggers the PHP GC.

For an account with 1700 threads I see

  • main: 16122696 bytes in use at the end of occ mail:account:sync
  • here: 10121136 bytes in use at the end of occ mail:account:sync

@ChristophWurst ChristophWurst merged commit cb45288 into main Apr 19, 2024
35 checks passed
@ChristophWurst ChristophWurst deleted the fix/threading/garbage-collection branch April 19, 2024 10:02
@ChristophWurst
Copy link
Member Author

ChristophWurst commented Apr 19, 2024

/backport to stable3.6

1 similar comment
@ChristophWurst
Copy link
Member Author

/backport to stable3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants