Set Thread numbers #1153
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This setting configure the number of C threads used by PHP itself, but not the number of Go threads that are automatically managed by the Go runtime. I don't know if there is a way to configure the number of Go threads, but it's likely a bad idea. Similarly, having only 1 PHP thread will create a bottleneck. You should probably increase this number. |
Beta Was this translation helpful? Give feedback.
-
You should use the GOMEMLIMIT env var to do that, it works very well: https://frankenphp.dev/docs/performance/#go-runtime-configuration |
Beta Was this translation helpful? Give feedback.
You should use the GOMEMLIMIT env var to do that, it works very well: https://frankenphp.dev/docs/performance/#go-runtime-configuration