如何在 windows 中 运行 jstat?

How to run jstat in windows?

我正在尝试 运行 jstat 进行监控 GC。我使用 jps 命令得到 vmid

> jps
18928 GCTest

但是当我尝试 运行 jstat 时:

>jstat -gc <vmid> 18928
The system cannot find the file specified.

我收到消息 The system cannot find the file specified.。语法似乎很好。我有没有犯错?

这样称呼它,这应该有效:

jstat -gc 18928