Automatic memory downsizing seems to break requests/job executions #165
-
DescriptionI'm using the Relay extension within a Laravel application and receive lots of errors in our error reporting tool (Sentry) related to the automatic reduction of the memory limit. The errors are caused by a PHP Warning, that by default in Laravel, will throw an error. The errors don't provide much information (no context or stacktrace) and there's no way to reproduce it, but as I understand it, the exception triggered by the warning will cause the current process to fail. Example:
Expected BehaviorThe downsizing must not break applications and cause requests or long running jobs to fail. Especially the behavior of this extension should be deterministic and reproducible and not cause side-effects like this. Actual BehaviorIf Possible FixEither allow this "feature preview" or "unlimited" mode to be switched off by a setting or remove the PHP warning (as it's an expected/documented behavior). Steps to ReproduceThis error is very, very hard to reproduce as it's caused by a side-effect that can't be enforced without access to the source code. Therefore, errors like this occur only in production environments with high load. Additional contextI found out, that the prefix This warning doesn't seem to respect the Disabling error reporting for PHP or reducing the log level is not desirable, as I want to be notified about any misconfigurations or errors. Hiding warnings and errors is generally a bad idea. Relay diagnostics
EnvironmentWe run Relay in many different environments (with PHP-FPM for web requests, in CLI variant for executing jobs and with Bref in AWS Lambda). However, this error shouldn't be related to a specific environment, this is the environment of the PHP-FPM version:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Relay will reduce its allocation to 33554432 or 16777216 depending on the version after about an hour. If you're running Relay longer with a license and don't want to see a warning, I'd suggest leaving |
Beta Was this translation helpful? Give feedback.
Relay will reduce its allocation to 33554432 or 16777216 depending on the version after about an hour. If you're running Relay longer with a license and don't want to see a warning, I'd suggest leaving
relay.maxmemory
to the default.