-
Notifications
You must be signed in to change notification settings - Fork 35
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
Memory limit on php.ini seems not updated when container size is updated #232
Comments
Another customer impacted by this issue: https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/3379738/conversations/12375700056305 |
The idea is that a bigger container type could be used to receive more requests. Note that the person can update its configuration throught customer But indeed maybe we could make this value a little bit more increasing. But it should not be |
I'm not sure I understand why the value of this parameter should be set to something lower than the available memory in the container. But if you think it's important that it's not set to all the memory available, what would be a good value? Its value is currently 196 MiB. It's 75% of a S container. Should we always set it to 75% of the available memory? |
Actually this value is the memory limit Per Request not for the global PHP consumption. The memory model of PHP is working that way, each request is isolated in it's own process (process managed in a pool of processes by PHP-FPM in our case). The I think that we set a default of Having 392MiB per request or even 784MiB per request is like quite point less, it just allow failing logics to have more impacts on the application as the PHP process won't stop the request saying "you take too much memory", but will allocate it and eventually swap and slow down the whole application. My proposal is more to have a growth factor which is more relative. 196MB S/M |
Problem
When changing the container size, the memory limit in php.ini is not changed automatically.
This causes the container to use a much lower memory limit while the container has more memory and that PHP could use more memory.
See: https://github.com/Scalingo/php-buildpack/blob/master/conf/php/php.ini#L15
Related intercom conversation: https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/3379738/conversations/12375700056080
The text was updated successfully, but these errors were encountered: