java 远程调试 监控

1 通过beanshell的remote server
http://www.beanshell.org/manual/remotemode.html

2 JDPA(javac -g)
  2.1 -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n
  2.2 jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=1044
      suspend
      thread <ID>
      set <lvalue> = <表达式> (set Main.member=5)

你可能感兴趣的:(java,thread,html,socket,sun)