修改monitor和agent代码,测试需要debug远程agent发送的信息,在agent jvm启动参数中加入debug字段
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8887
参考:http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/jdb.html
然后修改eclipse的tomcat启动模式为debug,菜单run->debug configuration->remote java application->MonitorDataUtils,设置如下