https://bz.apache.org/bugzilla/show_bug.cgi?id=66327

--- Comment #12 from Konstantin Preißer <kpreis...@apache.org> ---
Hi,

FYI, on Windows, the default thread stack size is specified in the PE header
and can be set with the "editbin.exe /STACK" command [1] (and can be displayed
with the "dumpbin.exe /headers" command [2].
AFAIK this size will automatically be used for the stack size of the Main
thread.

For the "tomcat9.exe" service wrapper from Tomcat 9.0.65 (Windows x64), it is
displayed as follows (hex):

          100000 size of stack reserve
            1000 size of stack commit

i.e., a 1 MiB stack size. This seems to be the default at least when using MS
Visual C++ 2022. (The .NET [Core] app host for example uses a 1.5 MiB default
stack size for Windows x64.)

To set it e.g. to 4 MB stack (without changing the stack commit size), you can
call:

    editbin /STACK:4194304 tomcat9.exe


[1] https://learn.microsoft.com/en-us/cpp/build/reference/stack?view=msvc-170
[2] https://learn.microsoft.com/en-us/cpp/build/reference/headers?view=msvc-170

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to