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

Excessive memory allocation #2682

Open
drink-uj opened this issue Oct 17, 2024 · 2 comments
Open

Excessive memory allocation #2682

drink-uj opened this issue Oct 17, 2024 · 2 comments

Comments

@drink-uj
Copy link

The optimization is required.
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4194312 bytes) in local/o365/classes/rest/unified.php on line 206

For more than 100,000 team groups, after running the cron process to sync Moodle courses with Microsoft Teams (\local_o365\task\coursesync), I get this result:

Execute scheduled task: Create user groups in Microsoft 365 package (local_o365\task\coursesync) 
... started 17:45:17. 
Current memory use 36.0 MB. 
Start syncing courses. Tenant has education license: yes Restore groups that have been soft-deleted... 
Processing courses without groups... 
... All courses have groups created. 
Processing courses without teams... 
... All courses have teams created. 
Updating teams cache..

The process stops at this stage without returning any error and begins to block all tasks in the Moodle cron queue.

@bts0004
Copy link

bts0004 commented Oct 21, 2024

Which version are you using? Is this pre-/post- the recent update to 4.4.1?

@drink-uj
Copy link
Author

I use Moodle 4.1, and the version of my plugin is 4.1.8, which is from before the last update.

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

No branches or pull requests

2 participants