문제

According to this stackoverflow post, there is a limit on Mac OS X 10.6 for how many threads can be created by JVM or any application. The limit can be displayed by running following command in terminal:

sysctl kern.num_threads

and

sysctl kern.num_taskthreads

systctl has the possibility to override these values on Linux, however not on OS X. According to this man page, those fields are not changeable.

So my question is, on OS X 10.6, is there another way to override the limit of how many threads can be created?

도움이 되었습니까?

해결책

You may be able to use the 64-bit kernel and a lot of memory to increase the limit. See Understanding process limits (this is about 10.6 Server). I don't know of another way.

다른 팁

use this cmd in ubuntu 12.10

sysctl  -A | grep thread

If you are reaching this limit perhaps you should think about changing your design. How many cores do you have? The limit is usually set at a level its has been determined the system won't behave particualrly well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top