Actually, Java 8 defaults to 1MB for each stack thread.

-Xsssize
Sets the thread stack size (in bytes). Append the letter k or K to indicate KB, 
m or M to indicate MB, g or G to indicate GB. The default value depends on the 
platform:

Linux/ARM (32-bit): 320 KB

Linux/i386 (32-bit): 320 KB

Linux/x64 (64-bit): 1024 KB

OS X (64-bit): 1024 KB

Oracle Solaris/i386 (32-bit): 320 KB

Oracle Solaris/x64 (64-bit): 1024 KB


wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)


> On Oct 18, 2017, at 1:44 PM, Walter Underwood <wun...@wunderwood.org> wrote:
> 
> With an 8GB heap, I’d like to keep thread stack memory to 2GB or under, which 
> means a maxThreads of 1000.
> 
> wunder
> Walter Underwood
> wun...@wunderwood.org
> http://observer.wunderwood.org/  (my blog)
> 
> 
>> On Oct 18, 2017, at 1:41 PM, Walter Underwood <wun...@wunderwood.org> wrote:
>> 
>> Jetty maxThreads is set to 10,000 which seams way too big.
>> 
>> The comment suggests 5X the number of CPUs. We have 36 CPUs, which would 
>> mean 180 threads, which seems more reasonable.
>> 
>> wunder
>> Walter Underwood
>> wun...@wunderwood.org
>> http://observer.wunderwood.org/  (my blog)
>> 
>> 
> 

Reply via email to