Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2009 11:53:14 +0300
From:      Yevgen Krapiva <ykrapiva@gmail.com>
To:        freebsd-threads@freebsd.org
Subject:   How to increase the maximum number of threads per process ?
Message-ID:  <73923e560904300153t22cef75ay81434eeb5a245b2d@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi.

How to increase the maximum number of threads per process ?
sysctl kern.threads.max_threads_per_proc=5000 do the trick but if I
specify more than 5000 (10000 for example), the system doesn't let me
anyway to create more than ~5000 of threads.

This is needed for server application which creates a new thread for
incoming request.
If the number of threads reaches the OS's limits, it crashes.

Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73923e560904300153t22cef75ay81434eeb5a245b2d>