如果不建议使用jstat,我应该使用什么呢? [英] If jstat is deprecated, what should I use instead?

查看:248
本文介绍了如果不建议使用jstat,我应该使用什么呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然我发现jstat 已弃用:

jstat工具显示已检测的性能统计信息 HotSpot Java虚拟机(JVM).目标JVM通过以下方式标识 其虚拟机标识符或以下所述的vmid选项.

The jstat tool displays performance statistics for an instrumented HotSpot Java virtual machine (JVM). The target JVM is identified by its virtual machine identifier, or vmid option described below.

注意:此实用程序不受支持,将来可能不可用 版本.当前在Windows 98上不可用 和Windows ME平台.

NOTE: This utility is unsupported and may not be available in future versions of the J2SE SDK. It is not currently available on Windows 98 and Windows ME platforms.

多年来我一直没有在Windows上开发任何东西,但问题是-我应该使用什么代替,如今哪种工具(或一组工具)被认为是我可以使用的那种监视的最佳替代品jstat?

I haven't developed anything on Windows for years, but nevertheless the question is - what should I use instead, which tool (or set of tools) nowadays is considered the best substitute for that kind of monitoring I can get using jstat?

更新:首选纯CLI工具.

Update: pure CLI tools are preferable.

推荐答案

文档说,自从JDK 5(已链接)以来,它不受支持(尚未完全弃用),但它仍存在于JDK 6、7和OpenJDK 8中.我不太担心它的短期消失,尤其是因为它没有替代品(

The documentation says that it's unsupported (not quite deprecated yet) since JDK 5 (which you linked), yet it's still present in JDK 6, 7 and OpenJDK 8. I'm not too worried about its disappearance in the short term, especially since it doesn't have a replacement (jcmd doesn't have an equivalent command).

此外,工具和实用程序目录表示支持 ,但Windows 98&我.然后再次在上方说,它不受支持且处于实验状态.

Besides, the tools and utilities directory says it is supported, except on Windows 98 & ME. Then again it says right above that it's unsupported and experimental..

一个警告:上一次我检查它不支持G1,但是后来JConsole/JVisualVM也不支持.这并不意味着它无法适应.

One caveat though: last time I checked, it didn't support G1, but then, neither did JConsole/JVisualVM. It doesn't mean it can't be adapted.

这篇关于如果不建议使用jstat,我应该使用什么呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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