You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,7 +191,6 @@ php_server [<matcher>] {
191
191
watch <path> # Sets the path to watch for file changes. Can be specified more than once for multiple paths.
192
192
env <key> <value> # Sets an extra environment variable to the given value. Can be specified more than once for multiple environment variables. Environment variables for this worker are also inherited from the php_server parent, but can be overwritten here.
193
193
match <path> # match the worker to a path pattern. Overrides try_files and can only be used in the php_server directive.
194
-
max_requests <num> # Sets the maximum number of requests a worker thread will handle before restarting, useful for mitigating memory leaks. Default: 0 (unlimited).
195
194
}
196
195
worker <other_file> <num> # Can also use the short form like in the global frankenphp block.
197
196
}
@@ -285,7 +284,7 @@ The `max_requests` setting in the global `frankenphp` block applies to all PHP t
285
284
```
286
285
287
286
When a thread reaches the limit, the underlying C thread is fully restarted,
288
-
cleaning up all ZTS thread-local storage, including any memory leaked by PHP extensions.
287
+
cleaning up all memory and state, including any memory leaked by PHP extensions.
289
288
Other threads continue to serve requests during the restart, so there is no downtime.
290
289
291
290
Set to `0` (default) to disable the limit and let threads run indefinitely.
0 commit comments