Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Jan 2012 18:03:15 -0200
From:      Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
To:        "Muhammet S. AYDIN" <whalberg@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: freebsd server limits question
Message-ID:  <1325534595.37111.8.camel@z6000.lenzicasa>
In-Reply-To: <CAP28s1DhhsSV%2Bz8BuRDVjHypD%2BpECuXQEH5BKjJRKMorcWL0rw@mail.gmail.com>
References:  <CAP28s1DhhsSV%2Bz8BuRDVjHypD%2BpECuXQEH5BKjJRKMorcWL0rw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
hello...

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

What happens is that you have exhausted the thread limit of your
appplication
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: 
kern.threads.max_threads_per_proc=9000
and than the command: /etc/rc.d/sysctl restart

Hope this will help




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1325534595.37111.8.camel>