運行java應用程序 java
#bash LauncherJavaMainClass.sh Could not synchronize with target
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: h003018.xxx.com: h003018.xxx.com shell
解決: vim
方法1、 bash
#vim /etc/hosts192.168.1.202爲啓動java應用的主機IP tcp
方法2、 .net
查看LauncherJavaMainClass.sh,註釋掉以下JMX啓動參數 日誌
#JAVA_OPS="-Dsun.rmi.transport.tcp.readTimeout=5000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.server.exceptionTrace=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=22446 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" code