Skip to content

500 Errors due to PHP memory limit #297

@Nicholasbell03

Description

@Nicholasbell03

Pulse Version

v1.0.0-beta9

Laravel Version

10.40.0

PHP Version

8.2.13

Livewire Version

3.3.5

Database Driver & Version

MySQL 8.0.33

Description

Getting Server 500 errors on our production app when viewing the Pulse Dashboard.
Error below

-[2024-01-26 14:01:45] production.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 94760960 bytes) {"userId":78,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 94760960 bytes) at /var/www/prod-campus/storage/framework/views/739ecd821f4687d0eee4066fca79ed9a.php:252)
[stacktrace]
#0 {main}
"}

Our app is a single DB (table) multitenancy app and does have a decent amount of traffic:
I'm seeing 2M entries in the pulse entries table
image

I'm just raising this so the issue is known whilst Pulse is still in Beta.
I can try increase the memory limit, however, I wanted to raise this first in case there is an issue around optimisation.

Worth noting that we are running Pulse on it's own DB.

I'm happy to provide any more details, or assist/lead a PR to improve this if that's helpful. I'm not an extremely experienced developer, hence why I'm raising the issue, rather than immediately being able to identify the core issue and propose a solution.

Steps To Reproduce

Run Pulse with 7-Day selected in high traffic environment.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions