get_jstat_output
Execute jstat commands to monitor JVM performance metrics like garbage collection, class loading, and compiler statistics for Java processes.
Instructions
执行 jstat 监控命令
Args:
pid (str): 进程ID,使用字符串形式(如:"12345")
option (Optional[str]): jstat选项,如gc、class、compiler等
interval (str): 采样间隔(毫秒),使用字符串形式(如:"1000"表示1秒)
count (str): 采样次数,使用字符串形式(如:"10")
Returns:
Dict: 包含jstat执行结果的字典,包含以下字段:
- raw_output (str): 原始输出
- timestamp (float): 时间戳
- success (bool): 是否成功
- error (Optional[str]): 错误信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| option | No | ||
| interval | No | ||
| count | No |