Reputation: 1695
I know that we can control the libuv thread pool size by setting the UV_THREADPOOL_SIZE environment variable before running the process in question.
However, since this may change (ex depending on server config) it would be nice to inspect the thread pool size that libuv is actually using, at runtime. How can we do this?
Thanks.
Upvotes: 2
Views: 906
Reputation: 2010
The thread pool size cannot currently change at runtime. The first time an operation is queued on the pool libuv will read the UV_THREADPOOL_SIZE
environment variable and create the thread pool. From then on its size won't change.
Upvotes: 1