Jprofiler 监测远程linux jboss
时间:2007-01-29 来源:ghbspecial
软件测试工具
http://testing.csai.cn/testtools/No284.htm jprofiler 诊断案例
http://jeffchon.spaces.live.com/blog/cns!7f4e136bf893b025!198.entry jprofiler监测远程linux web server
http://zenganiu1980.spaces.live.com/Blog/cns!1peI6bRIssK7aq6cYXv1F0LQ!258.entry Jprofiler 4.03 试用10天,KEY
E-GHB2#1084495-2007.02.06-10-im17ks8t0rtc#0416
Jprofiler破解---附其它版本的注册码
http://hi.baidu.com/vsandjava/blog/item/27d6339bd6032fb5c8eaf47f.html Jprofiler3.3.1下载地址
http://download.ej-technologies.com/jprofiler/jprofiler_windows_3_3_1.exe JProfiler 3.3.1
s/n: A-XiV7#20128F-1nf9r2z1qepp2e#7120 JProfiler 4.0 序列号
Name and Company: anything s/n: A-G666#76114F-1olm9mv1i5uuly#0126 JProfiler 3.2.0
S/N: A-GAiN#91584F-vd0mmz13mkf00#181013<br>or<br>A-GAiN#22031F-1giul8u16x7p65#121218<br>or<br>A-GAiN#98900F-1j62dw18rpusn#111117<br> Jprofiler工具用来检测监视诊断java程序运行状态的工具。
JProfiler是一个全功能的Java剖析工具(profiler),专用於分析J2SE和J2EE应用程式。它把CPU、线程和记忆体的剖析组合在一个强大的应用中。JProfiler可提供许多IDE整合和应用服务器整合功能。JProfiler直觉式的GUI让你可以找到性能瓶颈、抓住内存泄漏(memory leaks)、并解决多线程的问题。它让你得以对heap walker作资源回收器的root analysis,可以轻易找出内存泄漏;heap快照(snapshot)模式让未被引用(reference)的对象, 稍微被引用的对象、或在终结(finalization)序列的对象都会被移除;整合精灵以便剖析瀏览器的Java外掛功能。 相应的工具还有著名的Optimizeit Profiler,不过此工具不能监测远程的,所以用决定使用Jprofiler.
需求:在一台windows机器上监测远程的一台linux jboss4.0.3服务器。 1.
下载windows版Jprofiler3.3.1 使用上面的连接地址和序列号,之后进行安装,安装完毕之后,先不用进行设置。 2.
下载linux下运行的Jprofiler3.3.1 有rpm,tar.gz, .sh 三种,我使用的是tar.gz
http://www.ej-technologies.com/download/jprofiler/version3.php tar zxvf jprofiler_linux-x86_3_3_2.tar.gz
下载完毕之后解压缩到/var/Jprofiler3 3.
在windows机器上运行jprofiler,在菜单中选择Session->Integration Wizard->New Remote Integration -> 选on a remote computer 选linux -> 输入远程地址 -> 之后出现让你指定的是linux机器上jprofiler安装目录位置,输入/var/jprofiler3 ,最后出现一些摘要信息里面的一些设置是需要记住的,在linux配置时需要用到。 信息提示:
Integration type: [Generic application]
Selected JVM: Sun Microsystems 1.5 (1) Please insert -Xint -Xshare:off -Xrunjprofiler:port=8849 -Xbootclasspath/a:/var/jprofiler3/bin/agent.jar into the start command of your remote application right after the java command. (2) Please add /var/jprofiler3/bin/linux-x86 to the environment variable LD_LIBRARY_PATH. A remote session named Remote application on 192.168.0.191 will be created that connects to a running instance of the remote application that is started with the modified start command. 4.
就要在linux服务器上进行配置了,这就需要刚才生成的个性配置信息。其中 –Xint –Xrunjprofiler:port=8849 –Xbootclasspath/a:/var/jprofiler3/bin/agent.jar这一行添加到run.conf的JAVA_OPTS if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-server -Xms128m -Xmx128m -Djava.compiler=none -Xrunjprofiler:port=8849 -Xbootclasspath/a:/var/jprofiler3/bin/agent.jar"
fi 添加用户环境变量:vi .bash_profile
export LD_LIBRARY_PATH=/site/jboss/server/default/lib:/usr/local/lib:/var/jprofiler3/bin/linux-x86
5.
启动jboss /bin/run.sh -c all & 会看到提示正在等待jprofiler连入 之后到window机器上选择open session 连接就可以了,如果没有问题应该可以看图表了。
相关阅读 更多 +