سؤال

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