[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unable to create native thread

What kernel version are you using?

2.2.x has a limit of around 512 threads total for the system, and roughly
256 max for each user (512/2).

To change edit include/linux/tasks.h

Change NR_TASKS and MAX_TASKS_PER_USER appropriately. Then recompile and
install your kernel. Do a search on google for the 'volcano' benchmarks. IIRC
they have a section on how to tune linux for that type of load.

On Fri, Jul 13, 2001 at 11:41:47AM -0700, Nelson Chan wrote:
> Hi There,
> I'm testing a chat server and after a little over 100 connections (each 
> connection requires two Java threads) the program failed with the message:
> "Exception in thread "main" java.lang.OutOfMemoryError: unable to create new 
> native thread at java.lang.Thread.start(Native Method)" ...
> I'm running on a Pentium III 1GHz with 512 MB. Please help. Thanks.
> Best Regards,
> Nels
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: