вівторок, 29 березня 2016 р.
Tomcat jmx interface
$ uname -srm
FreeBSD 10.2-RELEASE amd64
without GUI
$ java -version
openjdk version "1.8.0_66"
OpenJDK Runtime Environment (build 1.8.0_66-b17)
OpenJDK 64-Bit Server VM (build 25.66-b17, mixed mode)
I have a running service Tomcat 8. The JVM LISTENs to a http interface on port 8080 and an AJP interface on port 8009.
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
www jsvc 14008 48 tcp4 6 *:8080 *:*
www jsvc 14008 53 tcp4 6 *:8009 *:*
I need remote connect to an java server over JMX and I created file setenv.sh.
cat /usr/local/apache-tomcat-8.0/bin/setenv.sh
#!/bin/sh
export CATALINA_OPTS="Djava.awt.headless=true -Xmx128M -server -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=172.16.11.4"
Restart server:
# service tomcat8 restart
The Tomcat restarted but did not LISTEN a port 1090.
What am I doing wrong?
Підписатися на:
Дописати коментарі (Atom)
Немає коментарів:
Дописати коментар