On Tue, Jul 9, 2013 at 7:42 PM, Kiki <[email protected]> wrote:
> One of the changes made by Ben Noordhius in Node v0.10.0 was to "honor
> UV_THREADPOOL_SIZE environment variable" in Unix. The "threadpool.c" source
> file seems to do just that.
>
> If I don't set this env variable, I can verify that I am limited to a
> threadpool of 4 threads, which is the default size of the threadpool.
>
> But I set this environment variable on my Linux server to 64 and then
> restart Node, but I still seem to be limited, seemingly to a threadpool of
> size of 5?!
>
> Does this make any sense to anyone? Thanks!
The thread pool is created on demand:
$ UV_THREADPOOL_SIZE=10 out/Release/node
>
>From another shell:
$ ps -Lef | grep '[n]ode' | wc -l
2
Now kick off something that uses the thread pool:
> require('fs').readFile('/etc/motd', function() { })
And now the threads are there:
$ ps -Lef | grep '[n]ode' | wc -l
12
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.