netbeans profiler配置

1、netbeans分析,生成远程配置包profiler-server-linuxamd64.zip

上传到远程服务器。

2、执行以下命令

unzip profiler-server-linuxamd64.zip -d remote

修改
remote/bin/calibrate-16.sh
JAVA_HOME=/opt/java/jdk1.6.0_43
export JAVA_HOME

hadoop@m1hadoop:~/remote/bin$ ./calibrate-16.sh 
Profiler Agent: JNI OnLoad Initializing...
Profiler Agent: JNI OnLoad Initialized successfully
Starting calibration...
Calibration performed successfully
For your reference, obtained results are as follows:
Approximate time in one methodEntry()/methodExit() call pair:
When getting absolute timestamp only: 0.1112 microseconds
When getting thread CPU timestamp only: 11.5599 microseconds
When getting both timestamps: 11.6962 microseconds

Approximate time in one methodEntry()/methodExit() call pair
in sampled instrumentation mode: 0.0475 microseconds


修改profile-16.sh
JAVA_HOME=/opt/java/jdk1.6.0_43
export JAVA_HOME

hadoop@m1hadoop:~/remote/bin$ ./profile-16.sh 
Profiler Agent: Initializing...
Profiler Agent: Options: >/home/hadoop/remote/bin/../lib/,5140<
Profiler Agent: Initialized successfully
Profiler Agent: 250 classes cached.
Profiler Agent: Waiting for connection on port 5140 (Protocol version: 15)

步骤4:将以下参数添加到应用程序启动脚本(复制到剪贴板):

-XX:+UseLinuxPosixThreadCPUClocks-agentpath:/home/hadoop/remote/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/home/hadoop/remote/lib,5140

JAVA_OPTS="-Xmx20m-XX:+UseLinuxPosixThreadCPUClocks-agentpath:/home/hadoop/remote/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so=/home/hadoop/remote/lib,5140"

bin/flume-ngagent-cconf-fconf/flume-conf.properties.template

hadoop@m1hadoop:~/apache-flume-1.5.0.1-bin$nohupbin/flume-ngagent-cconf-fconf/flume-conf.properties.template-na1&

hosts配置别忘了

http://zzq635.blog.163.com/blog/static/195264486201310252759526/

相关推荐