- First commit to issue fork.
- last update
over 1 year ago 17 pass - Status changed to Fixed
over 1 year ago 2:16pm 31 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.
-
https://www.drupal.org/project/jsonapi_boost →
uses EntityToJsonApi-service to warm up JSON:API caches in a queue
- If there are a lot of items queued, the server will quite fast hit PHP Fatal error: Allowed memory size of ... bytes exhausted
error
- This happens because the HTTP made in EntityToJsonApi->serialize is never terminated before the results are returned.
- Our server env had a memory_limit of 400M
- Create hundreds of nodes and taxonomies, add them to the JSON:API warmer settings in jsonapi_boost
- Run drush warmer:enqueue jsonapi --run-queue
and the process should die because of the memory running out
- Terminate the HTTP request before returning the results with the code from attached MR and the function will keep on running
Fixed
3.23
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.