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

Ben Greear greear at cyberhighway.net
Mon May 25 14:55:53 New Zealand Standard Time 1998

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 at cyberhighway.net)  http://www.primenet.com/~greear 
Author of ScryMUD:  mud.primenet.com 4444

More information about the MUD-Dev mailing list