开发者

Is there a way to change max number of threads can be created on OS X 10.6 by JVM?

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 ke开发者_如何学运维rn.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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜