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

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

问题描述

有没有人找到一个JVM文档,其中列出了各种版本的Sun/Oracle JVM和不同OS的默认-Xss值?

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

我已经能够在 jrockit jdk 5.0文档,但这对使用常规" Sun/Oracle JVM的用户没有帮助.

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

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

I do appreciate that the -Xss value will vary per OS (and JVM version), so maybe there is 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.

我要补充一点,这是很有价值的,原因是我们经常看到人们建议(错误地,我认为)有人可以通过更改-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.

推荐答案

尝试:

java -XX:+PrintFlagsFinal -version | grep ThreadStackSize

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

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