From owner-freebsd-questions@FreeBSD.ORG Mon Jan 2 20:03:21 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 711A7106566B for ; Mon, 2 Jan 2012 20:03:21 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 26C358FC0C for ; Mon, 2 Jan 2012 20:03:21 +0000 (UTC) Received: by yenl9 with SMTP id l9so10003577yen.13 for ; Mon, 02 Jan 2012 12:03:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references :disposition-notification-to:content-type:date:message-id :mime-version:x-mailer; bh=gaxEySI/egXQewdQx53DB+q9vCNlSJEurclzRsaPWIw=; b=my0nmUIGn+mQeT42cS4AFiw+tHXtHlBRkCi2rnbnJumAS4TG1fOxCNwqZrMc6nchll KwW/OlpewCQoobwHd80pSFJD7YtOTMwnM5xq+H21NalnZi2Tm6/xvxHxNBGoxCLFVJ/q OeD/9zILDa44QPBjKZsIc5TKlS0M+vEb6lA5k= Received: by 10.236.121.168 with SMTP id r28mr52426448yhh.18.1325534600510; Mon, 02 Jan 2012 12:03:20 -0800 (PST) Received: from [192.168.6.230] ([201.21.151.230]) by mx.google.com with ESMTPS id n5sm70539413yhk.1.2012.01.02.12.03.18 (version=SSLv3 cipher=OTHER); Mon, 02 Jan 2012 12:03:19 -0800 (PST) From: Sergio de Almeida Lenzi To: "Muhammet S. AYDIN" In-Reply-To: References: Date: Mon, 02 Jan 2012 18:03:15 -0200 Message-ID: <1325534595.37111.8.camel@z6000.lenzicasa> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: freebsd server limits question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2012 20:03:21 -0000 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