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

"Allowed memory size of ... bytes exhausted" #283

Open
paulrrogers opened this issue Nov 3, 2017 · 5 comments
Open

"Allowed memory size of ... bytes exhausted" #283

paulrrogers opened this issue Nov 3, 2017 · 5 comments
Assignees

Comments

@paulrrogers
Copy link

Apparently some of my exceptions have a deep trace or otherwise are overflowing memory. Any chance Rollbar's error unwinding could be made less memory intense?

1 File "/.../vendor/rollbar/rollbar/src/rollbar.php", line 184 in Rollbar\DataBuilder::generateErrorWrapper
2 File "/.../vendor/rollbar/rollbar/src/rollbar.php", line 161 in Rollbar\Rollbar::generateErrorWrapper
3 File "/.../vendor/rollbar/rollbar/src/DataBuilder.php", line 981 in Rollbar\Rollbar::fatalHandler

@ArturMoczulski ArturMoczulski self-assigned this Nov 3, 2017
@ArturMoczulski
Copy link
Contributor

@paulrrogers thanks for bringing this up. Can you explain more how your error reporting is too verbal? I would love to see so some examples of error reports that are just too memory intensive. Especially the ones that are causing the memory exhaustion.

@ArturMoczulski
Copy link
Contributor

I'm closing this issue for now. @paulrrogers if you want us to investigate further we need your help diagnosing this

@paullaffitte
Copy link

Hello, I'm currently using Rollbar-php 1.4.1, and I have this error too.
Here is what I get on rollbar.com from my production server:

E_ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 98570240 bytes): Allowed memory size of 134217728 bytes exhausted (tried to allocate 98570240 bytes) (Most recent call first)

File /composer/vendor/rollbar/rollbar/src/Payload/EncodedPayload.php line 37

I can help you to investigate further, what do you need to know ?

@brianr brianr reopened this May 4, 2019
@AronNovak
Copy link

We do have the same symptom. There's a complex flow in the Drupal application, without Rollbar, it works, with Rollbar, the memory limit is exceeded. Likely a notice or a warning is generated at some point and Rollbar doesn't have enough memory to prepare properly the payload that should be sent to the server. Checking what could be done about it.

@j6s
Copy link

j6s commented Jul 21, 2020

We had this problem as well. In our case it turned out that the stack traces contained UploadedFile objects which were tried to be encoded fully. Extending Rollbar\RollbarLogger and customizing getPayload to filter out / replace these objects with static strings did the trick in our case.

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

6 participants