行动是治愈恐惧的良药,而犹豫、拖延将不断滋养恐惧。

java 工具获取不到 Elasticsearch 的JVM 信息。

Elasticsearch | 作者 Jokers | 发布于2019年12月24日 | 阅读数:1485

$ ps aux | grep ela
XXX 14788 577 86.9 357323116 57131256 ? Ssl Aug14 1101499:25 /usr/local/bin/java -Xms30G -Xmx30G -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Des.path.home=/usr/local/elasticsearch-5.2.2 -cp /usr/local/elasticsearch-5.2.2/lib/elasticsearch-5.2.2.jar:/usr/local/elasticsearch-5.2.2/lib/* org.elasticsearch.bootstrap.Elasticsearch -p /usr/local/elasticsearch-5.2.2/pid//elasticsearch.pid -Edefault.path.logs=/usr/local/elasticsearch-5.2.2/logs/ -Edefault.path.data=/usr/local/elasticsearch-5.2.2/data/ -Edefault.path.conf=/usr/local/elasticsearch-5.2.2/config/ --quiet
nbzhiwei 15316 0.0 0.0 112724 2256 pts/0 S+ 14:22 0:00 grep --color=auto ela

$ jstat -gc 14788
14788 not found
已邀请:

easyice - 张超

赞同来自:

如果在容器里默认是获取不到的

trycatchfinal

赞同来自:

jps看看,有没有14788这个进程id

rebornhuang - 90后大数据工作者

赞同来自:

jmap -heap 进程id

要回复问题请先登录注册