httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <cove...@gmail.com>
Subject Re: docs-build and java stack size
Date Thu, 13 Sep 2007 19:19:26 GMT
On 9/13/07, Erik Abele <erik@codefaktor.de> wrote:
> On 12.09.2007, at 16:12, Eric Covener wrote:
>
> > build.sh has:
> >
> >> # raise stack size...
> >> ANT_OPTS="-Xmx128m -mx128m"
> >
> > AFAICT those affect the heap only and to change the native thread
> > stack size java seems to want -ss/-Xss.
>
> Yep, 'java -X' tells:
>
>      -Xms<size>        set initial Java heap size
>      -Xmx<size>        set maximum Java heap size
>      -Xss<size>        set java thread stack size
>
> Though the last time we had any mem-related problems it was
> sufficient to simply raise the heap.
>
> > Adding -Xss10m allowed me to get past java.lang.StackOverflowError
> > during the  docs build.
>
> Hmm, considering the default thread stack size of 512kb on Sparc and
> 256kb on Intel for 1.3 and 1.4 32-bit VMs I think this is a bit too
> much, no? (Since it quickly adds up to the whole amount of mem used...)
>
> Does it also work with 1mb, 2mb or 4mb?
>
> Ah, and just out of interesst, what does 'ulimit -s' say for you? On
> OS X it's 8192k so 10m is kind of moot here anyway, though shouldn't
> do any harm :)
>

FWIW on this system (IBM java5 ppc32) 512k fails, 1m succeeds.

Maybe 2m?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message