From owner-freebsd-threads@FreeBSD.ORG Fri Jan 23 15:26:23 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4BBA16A4CE for ; Fri, 23 Jan 2004 15:26:23 -0800 (PST) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id DACA343D8A for ; Fri, 23 Jan 2004 15:25:34 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc12) with ESMTP id <20040123232519014006sllme>; Fri, 23 Jan 2004 23:25:19 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA42421; Fri, 23 Jan 2004 15:25:21 -0800 (PST) Date: Fri, 23 Jan 2004 15:25:19 -0800 (PST) From: Julian Elischer To: Alex Boisvert In-Reply-To: <4011546D.9010904@intalio.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: "maxthr" state X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 23:26:23 -0000 On Fri, 23 Jan 2004, Alex Boisvert wrote: > > Nevermind, I discovered the kernel sysctl > "kern.threads.max_threads_per_proc" with default value 150. I bumped > the value to 300 and the app runs fine. (We simulate 250 clients with > 250 connections or threads, hence the need for a large value...) yes, the number could be made bigger but we didn't want to make it too easy for wildly out-of-control threadded programs to kill the system while the threading system is still "young".. > > alex > > Alex Boisvert wrote: > > > > > Hi, > > > > What does the following "maxthr" state mean? (output from top) > > > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU > > COMMAND > > 854 boisvert 20 0 432M 36936K maxthr 1 0:06 0.00% 0.00% java > > > > Does it mean I'm running into a maximum number of thread limit? If > > so, how I can increase the number of threads? > > > > My application uses a large number of threads and just goes to sleep > > at some point. I can provide more details or debug output if necessary. > > > > TIA, > > alex > > > > > > _______________________________________________ > > freebsd-threads@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > > To unsubscribe, send any mail to > > "freebsd-threads-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" >