I want to monitor jvm health of Elasticsearch 6x with the help of jolokia java jvm agent 1.5.0. For taking all metrics from Jolokia I use Metricbeat-6.2.3 and then will put all of them to Elasticsearch. Everything is installed on Centos system.
according to this instruction https://jolokia.org/reference/html/agents.html#jvm-agent I do such command:
su -c "java -jar /tmp/jolokia-jvm-1.5.0-agent.jar --verbose --debug --port=10000 toggle org.elasticsearch.bootstrap.Elasticsearch" -s /bin/bash elasticsearch
and get such notification
Couldn't start agent for process matching "org.elasticsearch.bootstrap.Elasticsearch" (PID: 5166)
Possible reason could be that port '10000' is already occupied.
Please check the standard output of the target process for a detailed error message.
And there is no effect when I change a port - still the same problem.
When I try to connect to Tomcat - everythings works fine and I get successful response on http://127.0.0.1:8778/jolokia/
What can be the problem of connection to Elastic?