在哪里可以找到Oracle JVM的默认-Xss(堆栈大小)值? [英] Where can I find default -Xss (stack size) value for Oracle JVM?

查看:76
本文介绍了在哪里可以找到Oracle JVM的默认-Xss(堆栈大小)值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人找到单个JVM文档,其中列出了不同版本的Oracle JVM和不同操作系统的默认 -Xss 值?

Has anyone ever found a single JVM document listing default -Xss values for various versions of the Oracle JVM, and for different OS's?

我已经能够在 jrockit文档,但这对于使用普通"标签的用户没有帮助.Oracle JVM.

I've been able to find this table in the jrockit docs, but that's not helpful for those using the "normal" Oracle JVM.

我确实很欣赏 -Xss 的值会因操作系统(和JVM版本)而异,因此也许没有一个文档列出所有最近的组合.但是,如果这里的读者知道任何单独列出的文档至少列出了每个 JVM版本的默认 -Xss 值(或至少为1.6和1.5),或者即使仅对于 some 操作系统,这将是一个不错的开始.我对Windows的默认设置特别感兴趣.

I do appreciate that the -Xss value will vary per OS (and JVM version), so maybe there's no one document that lists all recent combinations. But if any readers here know of any individual documents that list at least just the default -Xss value for each JVM version (or at least 1.6 and 1.5), or even if only for some OS's, that would be a great start. I'm especially interested in the default for Windows.

我要补充一点,这很有价值,原因是我们经常看到人们建议(错误地,我认为)有人可以通过更改 -Xss 值来解决问题.但是,如果您不知道默认值,那么就无法知道您是通过某人建议的任何更改来增加或降低该值.他们通常不会指出他们所使用的版本/操作系统,因此,对于他们的建议是否会帮助"解决方案,这是一种质疑.你.

I'll add that the reason this is valuable is that often we see people recommend (wrongly, I think) that someone can solve a problem by changing the -Xss value. But if you don't know your default, then there's no way to know if you're raising or lowering the value by whatever change someone recommends. They don't generally indicate the version/OS they're on, so it's a crapshoot whether their suggestion will "help" you.

比任何文档都更好,如果有人知道一种查询JVM来获取当前值的方法,无论是从命令行还是通过API调用,那将更加有价值.谢谢.

Even better than some documentation, if anyone knows a way to query the JVM to get the current value, whether from the command line or via an API call, that would be even more valuable. Thanks.

更新:我添加了我自己的答案,其中总结了各种建议并指出了当前的建议.资源(2021年初)指示答案,包括我对 -Xss 值的了解在Windows中.

Update: I have added an answer of my own that summarizes the various suggestions and points to a current resource (in early 2021) indicating the answer, including what I learned about the -Xss value in Windows.

推荐答案

尝试:

java -XX:+PrintFlagsFinal -version | grep ThreadStackSize

这篇关于在哪里可以找到Oracle JVM的默认-Xss(堆栈大小)值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆