From owner-freebsd-java@FreeBSD.ORG Tue Apr 17 05:03:27 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E17316A402; Tue, 17 Apr 2007 05:03:27 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.freebsd.org (Postfix) with ESMTP id 376B013C44C; Tue, 17 Apr 2007 05:03:27 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id 590624CDCA; Tue, 17 Apr 2007 04:33:03 +0000 (GMT) Received: from smitch7.jumbuck.com (p82.jumbuck.com [206.112.99.82]) by p4.roq.com (Postfix) with ESMTP id 2F28B4CDBF; Tue, 17 Apr 2007 04:33:03 +0000 (GMT) Received: from smitch7.jumbuck.com (mail.jumbuck.com [206.112.99.82]) by smitch7.jumbuck.com (Postfix) with ESMTP id B6CC34113E0; Tue, 17 Apr 2007 04:32:45 +0000 (UTC) Received: from beaste5.jumbuck.com (melbourne.jumbuck.com [150.101.166.27]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smitch7.jumbuck.com (Postfix) with ESMTP id 53EE94112EA; Tue, 17 Apr 2007 04:32:45 +0000 (UTC) Received: from beaste5.jumbuck.com (beast5 [192.168.46.105]) by beaste5.jumbuck.com (Postfix) with ESMTP id BD4D6209D1A9; Tue, 17 Apr 2007 14:32:41 +1000 (EST) Received: from beast2.jumbuck.com (unknown [192.168.46.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by beaste5.jumbuck.com (Postfix) with ESMTP id 8F148209D195; Tue, 17 Apr 2007 14:32:41 +1000 (EST) Message-ID: <46244DE8.7010003@thebeastie.org> Date: Tue, 17 Apr 2007 14:32:40 +1000 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.2) Gecko/20070314 SeaMonkey/1.1.1 MIME-Version: 1.0 To: freebsd-java@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-threads@FreeBSD.org Subject: Java and default libthr thread limits X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2007 05:03:27 -0000 Hi All, I been running Tomcat under FreeBSD 6.2 with libthr and I have noticed how easily we can hit 1,100 threads according to top right now, and we have hit past the default 1500 thread limit in the past. For me I am finding that this is just going higher to continue as the service is just getting busier. Currently I have just been increasing this manually via the sysctl. kern.threads.max_threads_per_proc: 40000 kern.threads.max_groups_per_proc: 40000 I was wondering if this limit should officially be increased to something like 5000 as my basic point of view is that if am easily hitting this limit then probably other people are as well. Any thoughts? Cheers, Mike