Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Philip Yarra <philip@cpc.ten.au>
Subject: Re: JDK 1.4.0-1 memory problems
Date: Thu, 07 Nov 2002 10:23:24 +1100	[thread overview]
Message-ID: <3dc9a4d2_1@news.iprimus.com.au> (raw)
In-Reply-To: 3dc22636_1@news.iprimus.com.au

Philip Yarra wrote:

As a follow-up for those interested:

Further playing with -Xss options yielded a fix. It seems the default thread 
stack size is a little too small for what I was trying to do. I am still 
convinced there is a flaw in the Compaq VM implementation - perhaps at 
small thread stack sizes the VM itself runs out of space, to the point 
where it cannot allocate memory to throw an exception? 

Anyway, running the app as follows:
java -Xss2048k -Xnoprecompiledsys classname options 
seems to work pretty reliably. Bumping it up to -Xss4096k allows me to spin 
out to 20,000 threads simultaneously (well, of course it doesn't actually 
spin out 20,000 threads, but it is able to throw and catch 
OutOfMemoryErrors, which is what I want).

I'm still unsure if such large thread stack size is good (I have read some 
doco that suggests it may impede performance) but it seems to work.

Regards, Philip.


      reply	other threads:[~2002-11-06 23:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-01  6:57 JDK 1.4.0-1 memory problems Philip Yarra
2002-11-06 23:23 ` Philip Yarra [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox