Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Large data PHP memory_limit overleak #20

Open
pepies opened this issue Feb 12, 2019 · 1 comment
Open

Large data PHP memory_limit overleak #20

pepies opened this issue Feb 12, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@pepies
Copy link

pepies commented Feb 12, 2019

If there is large database of posts... Default memory limit is not enought for looping over that.
I have tested it with 128MB/256MB, but it strongly depends of iteration source size.
With php.ini config value for memory_limit=-1 site loads without any problem.

@version:
    1
@timestamp:
    February 12th 2019, 16:40:55.492
project:
    flarum-dev
type:
    nginx-error
timestamp:
    February 12th 2019, 16:15:11.000
severity:
    error
errormessage:
    FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/www/php/diggysadventure.v2/vendor/illuminate/database/Eloquent/Model.php on line 290" while reading response header from upstream
client:
server:
request:
_id:
_type:
    nginx-error
_index:

@pepies pepies changed the title Larga data PHP memory_limit overleak Large data PHP memory_limit overleak Feb 12, 2019
@Ralkage
Copy link
Member

Ralkage commented Feb 12, 2019

Will validate, but, we may just end up replicating this extension due to multiple issues/bugs.

I would rather feel much safer with another take on this type of extension to supersede this one altogether tbh.

@Ralkage Ralkage added the bug Something isn't working label Feb 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants