freebsd server limits question

Sergio de Almeida Lenzi lenzi.sergio at
Mon Jan 2 20:03:21 UTC 2012


I supose you are using 64bits version of FreeBSD and at least 8.2

What happens is that you have exhausted the thread limit of your
your systeam is unable to create more threads for that appplication
a command: sysctl -a | grep thread
will show how they are setted up in your system.

mine has:
kern.threads.max_threads_hits: 0
kern.threads.max_threads_per_proc: 1500
vm.stats.vm.v_kthreadpages: 0
vm.stats.vm.v_kthreads: 24
vfs.nfsrv.minthreads: 4
vfs.nfsrv.maxthreads: 4
vfs.nfsrv.threads: 4
net.isr.numthreads: 1
net.isr.bindthreads: 0
net.isr.maxthreads: 1
note that the number of threads per proc is 1500 here (a notebook)

to increase the number of threads, edit the file /etc/sysctl.conf
put a line: 
and than the command: /etc/rc.d/sysctl restart

Hope this will help

More information about the freebsd-questions mailing list