From owner-freebsd-java@FreeBSD.ORG Wed Nov 10 18:39:30 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED44716A4CE for ; Wed, 10 Nov 2004 18:39:30 +0000 (GMT) Received: from e-card.bg (FaiLurE.e-card.bg [212.91.167.2]) by mx1.FreeBSD.org (Postfix) with SMTP id E454A43D1D for ; Wed, 10 Nov 2004 18:39:29 +0000 (GMT) (envelope-from mcgregory@e-card.bg) Received: (qmail 9314 invoked from network); 10 Nov 2004 18:37:02 -0000 Received: from unknown (HELO ?213.137.61.196?) (213.137.61.196) by mail.e-card.bg with SMTP; 10 Nov 2004 18:37:02 -0000 From: Martin Grigorov To: freebsd-java@freebsd.org Content-Type: text/plain Organization: Home Message-Id: <1100119160.700.13.camel@martin151> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 10 Nov 2004 20:39:21 +0000 Content-Transfer-Encoding: 7bit Subject: Thread's type X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mcgregory@e-card.bg List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 18:39:31 -0000 Hi all, I want to ask what type are Java threads in FreeBSD - green or native ? I'm using FreeBSD 5.3 and jdk 1.4.2 from ports, actually /usr/ports/jdk14. I am a little bit confused: a sysctl entry "kern.threads.max_threads_per_proc" says that one process can run max 1500 threads. But I wrote test and it crashes with: 'Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread', after starting ~ 8300 threads in the Virtual Machine. So it sais "native" in the exception, but they are much more than 1500. Thanks