What is the difference between -Xss and -XX:ThreadStackSize?

前端 未结 5 2151
我寻月下人不归
我寻月下人不归 2021-02-13 16:00

I just want to control the stack size for all of my threads in a Java (groovy) application. For the Hotspot Oracle VM, I know that there are two parameters doing that (-Xss and

5条回答
  •  梦谈多话
    2021-02-13 16:39

    -Xss is an alias for -XX:ThreadStackSize both for OpenJDK and Oracle JDK.

    Though they parse arguments differently:
    -Xss may accept a number with K, M or G suffix;
    -XX:ThreadStackSize= expects an integer (without suffix) - the stack size in kilobytes.

提交回复
热议问题