I have a web application deployed on tomcat, I connected jconsole with tomcat by adding setenv.sh file in bin folder of tomcat with following settings:-
export JAVA_OPTS="-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port={portno}
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname={ip}"
here, ip is of the system where tomcat is installed and application is deployed. Locally jconsole is workinf fine but can't connect it remotely from other system.
Continuously getting connection failed connection refused error.