DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

To Know Maximum Number Of Thread That Ca Be Handle By Your OS

09.29.2011
| 2903 views |
  • submit to reddit
        The maximum number of thread that can be handle by the kernel
can see show as $ cat /proc/sys/kernel/threads-max
And for my system is 30568

tilokchan@tilokchan_ubuntu9.10$ cat /proc/sys/kernel/threads-max
30568
tilokchan@tilokchan_ubuntu9.10$

But one can change it as $echo 40000>/proc/sys/kernel/threads-max
tilokchan@tilokchan_ubuntu9.10$echo 40000>/proc/sys/kernel/threads-max
tilokchan@tilokchan_ubuntu9.10$ cat /proc/sys/kernel/threads-max
40000