Hello,
I randomly get this error:
Symfony\Component\Debug\Exception\FatalErrorException thrown with message "Allowed memory size of 268435456 bytes exhausted (tried to allocate 139940597895400 bytes)"
Stacktrace: #1 Symfony\Component\Debug\Exception\FatalErrorException in Unknown:0 #0 Illuminate\Exception\Handler:handleShutdown in <#unknown>:0
I wasn't able to trace the source of error. I filled my app with memory_get_peak_usage, I've checked the server with top and watch and I didn't see anything strange. If I turn off the error reporting, the page will work just fine.
Any thoughts please?
I would definitely be looking at your models and DB queries to see if any are too eager to load half a database into memory. Either that or opening a giant file are your most likely causes.
Thank you, it was from a DB query on a MSSQL Server. Actually because of the driver.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community