Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 96571 invoked from network); 2 Dec 2009 16:41:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Dec 2009 16:41:38 -0000 Received: (qmail 33620 invoked by uid 500); 2 Dec 2009 16:41:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 33533 invoked by uid 500); 2 Dec 2009 16:41:34 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 33522 invoked by uid 99); 2 Dec 2009 16:41:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2009 16:41:34 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.59.212] (HELO QMTA14.westchester.pa.mail.comcast.net) (76.96.59.212) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2009 16:41:31 +0000 Received: from OMTA02.westchester.pa.mail.comcast.net ([76.96.62.19]) by QMTA14.westchester.pa.mail.comcast.net with comcast id CEkP1d0050QuhwU5EGhBZQ; Wed, 02 Dec 2009 16:41:11 +0000 Received: from [192.168.1.200] ([69.143.128.194]) by OMTA02.westchester.pa.mail.comcast.net with comcast id CGhB1d0024BnRt93NGhBxf; Wed, 02 Dec 2009 16:41:11 +0000 Message-ID: <4B1698A7.6000905@christopherschultz.net> Date: Wed, 02 Dec 2009 11:41:11 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How to solve the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26 References: <4B13A07A.7070605@ice-sa.com> In-Reply-To: X-Enigmail-Version: 0.97a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Peter, On 12/1/2009 1:51 AM, Peter Chen wrote: > The memory given to the JVM is $JAVA_OPTS -Xms512m -Xmx1024m > The memory of the Solaris system is: Memory size: 4096 Megabytes > > The result of executing command ulimit -a is as follows: > -bash-3.00$ ulimit -a > core file size (blocks, -c) unlimited > data seg size (kbytes, -d) unlimited > file size (blocks, -f) unlimited > open files (-n) 256 > pipe size (512 bytes, -p) 10 > stack size (kbytes, -s) 8192 > cpu time (seconds, -t) unlimited > max user processes (-u) 29995 > virtual memory (kbytes, -v) unlimited Hmm... no information about the threads-per-process. Try this in a C program: sysconf( _SC_THREAD_THREADS_MAX ) or something like that. You'll have to look at the manual page for sysconf on your system to determine the exact parameter to use and the exact meaning of the return value (though it should be somewhat standard). You may also have to look in /usr/include/unistd.h or /usr/include/bits/confname.h (where these SC_* constants are defined on my system) to determine what the parameter should be. The above might not work if POSIX threads are not being used. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAksWmKcACgkQ9CaO5/Lv0PAkQgCfeBmzlXP6LtV92qaMprK/vvPm AZ8AnizN90vFlSUSdszqu1KzAMmDRiXL =5a4X -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org