jps/jstat/jstat无法找到或附加到java pid (归Cassandra用户所有)。我尝试了软链接sudo I -s /tmp/hsperfdata_cassandra/cat /var/run/dse/dse.pid /tmp/hsperfdata_cat /var/run/dse/dse.pid --没有帮助。
我在ubuntu 14.04上运行java 1.8.0_45-b14
对如何解决这个问题有什么意见或建议吗?
发布于 2015-10-13 23:07:18
假设你使用的是versoin 2.2+。
Cassandra2.2.0添加了JVM选项-XX:+PerfDisableSharedMem来提高性能。如果您想要使用jps或类似工具,则需要删除该选项,或者使用ps并找到pid。
来自CASSANDRA-9483中的补丁
- The default JVM flag -XX:+PerfDisableSharedMem will cause the following tools JVM to stop working: jps, jstack, jinfo, jmc, jcmd as well as 3rd party tools like Jolokia. If you wish to use these tools you can comment this flag out in cassandra-env.{sh,ps1}
(我刚刚注意到2.2.0中的更改,但NEWS.txt更新仅在3.0+中。我将确保在下一个2.2版本中更新NEWS.txt。)
https://stackoverflow.com/questions/33091178
复制相似问题