bash:jstat:找不到命令 [英] bash: jstat: command not found

查看:2150
本文介绍了bash:jstat:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用gc实用程序来分析我的Cassandra数据库的垃圾回收.但是,当我运行jstat命令时,输出结果是未找到bash:jstat:命令.我搜索发现jstat位于$ JAVA_HOME/bin中,但我不知道$ JAVA_HOME/bin在哪里.我想知道如何开始使用jstat吗?

I want to use the gc utility to analyse the garbage collection for my Cassandra database. But when I am running jstat command the output comes that bash:jstat: command not found. I searched and found that jstat is located in $JAVA_HOME/bin but I am not able to understand where is $JAVA_HOME/bin. I want to know how to start using jstat?

推荐答案

jstat是在jdk(开发环境)中可用的工具.如果您的应用程序使用的是jre,则执行环境中只有jre/bin下的工具可用. 确保使用jdk作为执行环境以使用jstat工具.

jstat is a tool which is available in jdk (development environment). If your application is using jre then only the tools under jre/bin will be available in your execution environment. Make sure to use jdk as your execution environment to use jstat tool.

这篇关于bash:jstat:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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