1、根据IP地址查机器名
nbtstat -a ip地址,如nbtstat -a 10.71.69.115
2、去除BIOS密码的方法
先进入纯DOS环境,再依次运行如下命令
cmd
debug
o 70 10
o 71 01
q
3、使能Java程序的远程调试功能
在启动脚本中插入如下参数:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n
4、Jprofiler远程profile的命令行
以JProfiler安装在D:\jprofiler5\文件夹下为例
1、添加系统环境变量
修改Windows的Path环境变量,增加 D:\jprofiler5\bin\windows; 然后一路“确定”
2、修改bat启动脚本,增加如下蓝色标示脚本
..\jre\bin\java -agentlib:jprofilerti=port=8849 "-Xbootclasspath/a:D:\jprofiler5\bin\agent.jar" -Xms128m -Xmx512m -XX:+UseSerialGC -XX:MaxPermSize=342m -Dsun.java2d.noddraw=true -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
3、启动JProfiler
在命令行中出现“JProfiler> Waiting for a connection from the JProfiler GUI ...”时启动JProfiler,
在JProfiler中创建一个Remote Session,然后启动Session,即可启动监控