conherence中bin目录下cache-server.sh中配置已改
JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY -Dtangosol.coherence.distributed.localstorage=$STORAGE_ENABLED -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote=true -Dcom.sun.management.jmxremote  -Djava.rmi.server.hostname=xx.xx.xx.xx -Dcom.sun.management.jmxremote.port=aaaa -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
执行后,使用jconsole输入ip与对应的端口号,始终没有反应。求教!

解决方案 »

  1.   

    从coherence服务器,连接该端口(telnet 127.0.0.1 777)是否成功,777是端口号如果上面的连接成功,而远程不能连接,很可能是防火墙问题。什么操作系统?防火墙关闭了没有?
      

  2.   

    防火墙关闭,使用telnet测试端口时可用的,现在是jconsole界面报Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location错误。