-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
PHP Fatal error: Allowed memory size of xx bytes exhausted in GzipEncoderPlugin.php #1552
Comments
This is most likely because either you have a lot of information in the event (huge stacktrace, many breadcrumbs, lot's of context) and you might alreay be memory constraint which results in the application running out of memory when trying to send the event to Sentry. Part of sending the event to Sentry is gzipping the event data since the Sentry server only accepts payloads below a certain size and the gzipping helps with staying below that limit and speeding up the network transfer too. It can be disabled by setting Have you tried to reproduce the event being sent and see what data is contained within and if it might be excessively large? |
How do I see what data is in the event? |
You can use the Since you are not using a framework it's a little tricky considering what would be in those events since you implemented them yourself it would be interesting if you can pinpoint the exact problem event to see if there might be some kind of recursive issue or if there is something interesting on the request where the problem is being triggered, like if it is a POST request with a large payload. If it's not a manually triggered event it's most likely a PHP Error like a NOTICE or WARNING (or many of them) being (attempted) to sent to Sentry. |
How do you use Sentry?
Sentry Saas (sentry.io)
Version
3.18.2
Steps to Reproduce
I'm not exactly sure how to reproduce the error. Why is one of your plugins throwing this error?
PHP message: PHP Fatal error: Allowed memory size of 471859200 bytes exhausted (tried to allocate 65536 bytes) in /var/www/sites/xx/vendor/sentry/sentry/src/HttpClient/Plugin/GzipEncoderPlugin.php on line 53
Expected Result
No error
Actual Result
PHP message: PHP Fatal error: Allowed memory size of 471859200 bytes exhausted (tried to allocate 65536 bytes) in /var/www/sites/xx/vendor/sentry/sentry/src/HttpClient/Plugin/GzipEncoderPlugin.php on line 53
The text was updated successfully, but these errors were encountered: