[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

5549: [MUD-Dev] Re: OT: Java multithreading test source

[Full Header] [Plain Text]
From: Ben Greear <greear@cyberhighway.net>
Newsgroups: nu.kanga.list.mud-dev
Date: Mon, 25 May 1998 14:55:53 -0700 (MST)
References: [1]
Organization: Kanga.Nu
On Sun, 24 May 1998, Jon A. Lambert wrote:

> Some further thoughts: 
> 
> I reran the test on Win95 doing some very bad things like 
> pre-allocating a 1 Gig swap partition.  Oddly enough, both VMs failed
> around the same number of threads 1500+ because of out of memory 
> conditions.  This is probably an implementation limitation.  Thread 
> related data and stacks may in fact be allocated from global heap and 
> marked as non-swappable instead of from local heap.  Threads on Linux 
> are done quite differently and may not be distinguished from other 
> application memory.  

Look instead at the flags on your JRE, or java VM.  You can specify
stack size there, heap too probably.  The threads don't take up much
memory, relative to a 64 MB machine.

> This is probably way off topic.

Yes, but for those of us considering, or already writing in Java,
it is very pertinent.  Someone's gotta implement all these good 
ideas anyway! :)


Ben Greear (greear@cyberhighway.net)  http://www.primenet.com/~greear 
Author of ScryMUD:  mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html