标签:os java io ar for sp on ad c
运行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
解决:
方法一、
#vim /etc/hosts192.168.1.202为启动java应用的主机IP
方法二、
查看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"
Could not synchronize with target
标签:os java io ar for sp on ad c
原文地址:http://my.oschina.net/u/1377774/blog/308108