Skip to content

Allowed memory size exhausted due to No such entity exception #37594

@Bilalyounas1234

Description

@Bilalyounas1234

Summary

After upgrading the Magento version to 2.4.3p1 we are facing (No such entity exception) issues and due to this our server goes down and then we need to restart all services. We checked some time this error occurs while product search sometimes on checkout and sometimes on any other request.

Logs in nginx due to this issue:

[error] 107960#107960: *3469139 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4194312 bytes) in /data/site/vendor/magento/framework/Exception/NoSuchEntityException.php on line 50" while reading response header from upstream, request: "GET /en/catalogsearch/result/?q=Prime HTTP/1.1", upstream: "fastcgi://127.0.0.1:9004", host: "site", referrer: "https://site/en/catalogsearch/result/?q=Sunscreen+"
[error] 107960#107960: *3469131 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4194312 bytes) in /data/site/vendor/magento/framework/Exception/NoSuchEntityException.php on line 50" while reading response header from upstream, request: "GET /en/popup/ajax/addCookie/?isAjax=true&form_key=RYfvz8vlQ4fNnbG4&cookie_type=aw_popup_viewed_page&current_url=https%3A%2F%2Fsite%2Fen%2Fcms%2Findex%2Findex%2F HTTP/1.1", upstream: "fastcgi://127.0.0.1:9004", referrer: "https:/site/site/en/"

Examples

[error] 107960#107960: *3469139 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4194312 bytes) in /data/site/vendor/magento/framework/Exception/NoSuchEntityException.php on line 50" while reading response header from upstream, request: "GET /en/catalogsearch/result/?q=Prime HTTP/1.1", upstream: "fastcgi://127.0.0.1:9004", host: "site", referrer: "https://site/en/catalogsearch/result/?q=Sunscreen+"
[error] 107960#107960: *3469131 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4194312 bytes) in /data/site/vendor/magento/framework/Exception/NoSuchEntityException.php on line 50" while reading response header from upstream, request: "GET /en/popup/ajax/addCookie/?isAjax=true&form_key=RYfvz8vlQ4fNnbG4&cookie_type=aw_popup_viewed_page&current_url=https%3A%2F%2Fsite%2Fen%2Fcms%2Findex%2Findex%2F HTTP/1.1", upstream: "fastcgi://127.0.0.1:9004", referrer: "https:/site/site/en/"

Proposed solution

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.3-p1Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions