Filed under: Best Practices, Core Updates
Comments: None
Use the Eclipse menu item “Help/Install New Software” to install Mission Control from http://download.oracle.com/technology/products/missioncontrol/updatesites/base/5.5.0/eclipse/
When you add the connection to the server in Mission Control, you need to go the Custom JMX Service URL setting and modify the URI
from: service:jmx:rmi:///jndi/rmi://192.168.75.137:3333/jmxrmi
to: service:jmx:rmi://192.168.75.137:3333/jndi/rmi://192.168.75.137:3333/jmxrmi
Make sure all firewalls open up TCP port 3333 in both directions, including your local machine.
You need to run TEEE on the server with the following script:
TEEE run.sh for Ubuntu with JMX stats enabled
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
;------------------------------------------------------------------------------------------------------------- #!/bin/sh set -e -x CONTAINER_ROOT=/opt/nexj CONF_DIR=$CONTAINER_ROOT/conf DEPLOY_DIR=$CONTAINER_ROOT/deploy WAR_TEMPLATE=$DEPLOY_DIR/nexj-web.war CONTAINER_PROPS='-Dnexj.container.enabled=true -Dnexj.logger.factory=nexj.core.util.log.log4j.Log4JLoggerFactory -Djava.naming.factory.initial=org.apache.naming.java.javaURLContextFactory -Djava.naming.factory.url.pkgs=org.apache.naming -Dorg.apache.juli.logging.Log=nexj.core.rpc.tomcat.ra.LoggerLog -Dnexj.shutdown.timeout=0 -Djava.net.preferIPv4Stack=true' JMX_PROPS='-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3333 -Dcom.sun.management.jmxremote.rmi.port=3333 -Djava.rmi.server.hostname=<Host external IP Address> -XX:+DisableAttachMechanism -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' TASK='nexj.core.container.platform.teee.GenericContainerContainer start' rm -f $CONTAINER_ROOT/log/nexj.log java -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m -Xss8192k -XX:ThreadStackSize=8192 $JMX_PROPS -classpath $DEPLOY_DIR/nexj-bootstrap.jar -Dnexj.deploy.dir="$DEPLOY_DIR" -Dnexj.bootstrap.debug=false -Dnexj.container.war="$WAR_TEMPLATE" -Dnexj.bootstrap.classpath="$DEPLOY_DIR/*.jar:$DEPLOY_DIR/jta-1_1-classes.zip:$CONF_DIR" $CONTAINER_PROPS nexj.core.container.platform.teee.BootstrapLoader $TASK ;------------------------------------------------------------------------------------------------------------- |