问题标签 [jstat]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - Interpreting jstat output after tuning JVM heap size
Having recently attempted to increase the heap space and ratio of new to old gen size I'm seeing confusing results from jstat -gccapacity
which is showing much smaller capacities than I would expect.
The JVM (1.5.0_16) is started with -server -Xms2048m -Xmx2048m -XX:NewRatio=2
. It's running on a Solaris 5.10 amd64 host. With about 10GB of free memory. So from what I've read the JVM should be able to make use of the full 2GB of heap space.
Watching jstat -gcutil
I've observed all of the generations filling up several times causing garbage collections. E.g.:
Which I would have thought would cause the JVM to expand all the generations to their full size. However, jstat -gccapacity
produces:
Subsequent runs show NGC/S0C/S1C/EC change in value:
From what I understand, the capacity figures are the total size of the generation and the utilisation figures show allocations within the generation. So the above result is telling me that the combined new gen min and max capacities are both (NGCMN/MGCMX) 684MB and the old gen min and max are 1,366MB (OGCMN/OGCMX). What's confusing me is the capacities of the new generations. So my questions:
- Why doesn't EC + S0C + S1C == NGC? (41,920 != 86016)
- Why is NGC significantly smaller than NGCMN/MGCMX?
- Is this because the max heap size is being hit (which would put it at 1,488MB, from NGC+OGC+PGC), if so what would cause the lower limit? All the documentation I can find says a Solaris 64 bit JVM should be able to use 4GB.
- If the max heap size is being hit why do the new generations change in capacity (either all increasing or all decreasing) without the older generation changing to compensate).
Other potentially useful jstat results:
jmx - VisualVM over Putty SSH 隧道
我正在尝试分析远程 java 应用程序,实际上它是一个游戏服务器。它在我的本地机器(带有 JDK1.7.0_02 x64 的 windows XP x64)上正常工作,但在生产服务器(带有 JDK1.7.0_03 i586 的 CentOS)上表现得非常奇怪。
我做了很多搜索,发现我应该使用 VisualVM 来完成这项任务。所以 VisualVM 在本地机器上运行良好,但在本地机器上没有挂起,我需要在生产环境中使用真实有效负载进行分析。我用参数在远程机器上启动了 jstatd
与政策文件
然后我像这样启动了我的java应用程序
application 和 jstatd 都以 root 权限启动。
并且 VisualVM 无法连接到远程主机。但是在远程主机上,我看到以下日志,而 VisualVM 正在运行并添加了远程主机:
进一步谷歌搜索后,我发现我需要使用 ssh 隧道。我通过以下方式配置腻子
http://www.advancedigital.ru/show/putty_config.jpg
和 VisualVM 一样
http://www.advancedigital.ru/show/visualvm_config.jpg
VisualVM 上方的 Adter munipulations 连接到远程主机,但我只能看到线程摘要图表并且探查器处于非活动状态。
我已经看到一些建议,两台机器上的 jvm 应该相似并且具有相同的平台(x86 或 x64),但我已经尝试从另一台机器(带有 JDK1.7.0_03 x86 的 Windows 7 x86)进行分析,并且具有相同的结果。
我也试过这个,但再次得到相同的结果。 基于 ssh 的 VisualVM
我怎样才能让这个分析工作?
java - jstat:OGC&OC、PGC&PC的区别
我正在学习 jstat 以及它可以告诉我有关 JVM 不同代的信息。从jstat 文档中,我了解到新一代由 eden、s0 和 s1 组成。例如,如果您对以下内容进行数学运算,您会看到 NGC = EC + S0C + S1C。好东西。
我想知道有什么区别:
- OGC(当前老一代容量(KB))和
- OC(当前旧空间容量 (KB))。
同样适用于:
- PGC(当前永久发电容量(KB))和
- PC(当前永久空间容量 (KB))。
每对都有相同的价值,至少对我来说,现在。除了旧空间之外,旧一代中是否有任何东西?
编辑:我认为没有区别,但我会留下这个问题以防万一。
java - 如果不推荐使用 jstat,我应该改用什么?
突然我发现它jstat
已被弃用:
jstat 工具显示已检测的 HotSpot Java 虚拟机 (JVM) 的性能统计信息。目标 JVM 由其虚拟机标识符或下面描述的 vmid 选项标识。
注意:此实用程序不受支持,并且在 J2SE SDK的未来版本中可能不可用。它目前在 Windows 98 和 Windows ME 平台上不可用。
多年来我没有在 Windows 上开发任何东西,但问题是 - 我应该使用什么来代替,现在哪种工具(或一组工具)被认为是我可以使用的那种监视的最佳替代品jstat
?
更新:最好使用纯 CLI 工具。
json - Creating Log-normal distribution curves with Jstat using json data
There is no documentation for jStat. As of 2012-11-06 (per the documentation page): "The jStat API documentation is still being compiled."
I want to plot log-normal curves with JSON data. Can anyone who have worked on this throw some light on how to get started?
java - 高烫代和低老代
我们实际上已经将 jvm 的内存增加到 256M,现在老一代看起来非常小,但 Perm 代非常高,接近 80%。通过 jstat 捕获的示例数据如下。高烫发一代在这里说明什么?
重启前的样本
重启后的样本
使用的类是
代码的骨架。
javascript - 寻求统计 javascript 函数以从 z 分数返回 p 值
我需要将 z 分数转换为百分位数。我在 jStat 库中找到了一个我可以使用的函数的引用(jstat.ztest),但是 jStat 文档似乎领先于可用的库,因为在当前可用的库版本中没有这样的函数。
我认为GitHub 上有该库的更新版本,其中可能包含 ztest 函数,但我是 linux 新手,无法弄清楚如何根据说明构建库。我花了一天的大部分时间学习 git bash 和 cygwin 尝试构建库;我终于决定我最好在这里问。
那么,任何人都可以将我指向一个可以满足我需要的javascript函数吗?或者,任何人都可以将我指向包含 ztest 函数的 jStat 库的构建版本吗?
javascript - 在 JavaScript 中计算 beta 累积概率密度的倒数
我需要在 JavaScript 中复制这个 EXCEL 函数的功能 - Beta 累积概率密度的倒数http://office.microsoft.com/en-gb/excel-help/beta-inv-function-HP010335670.aspx。
是否有提供此功能的 JS 库?我试过 Jstat ( http://www.jstat.org/ ) 但它似乎没有这个特定的计算。
javascript - 如何调用jstat的studentt方法得到结果?
我有一个关于如何在 jstat 库中使用分布函数的问题。具体来说,我专注于学生。
我试过这个:
正如 jstat github 站点上所解释的,静态函数和实例函数之间存在差异。但是,如何做到这一点超出了我对 javascript 的经验。
谁能解释如何正确调用 studentt 函数并获得正确的结果?
谢谢!