Jprofiler 5.1.2 配置。
星期一, 3月 31st, 2008Jprofiler 5.1.2 配置。
1.下载
http://download.ej-technologies.com/--escaped_anchor:d4ebd700ae3c0b9b55c445e91755d368--/jprofiler_windows_5_1_2.exe
http://download.ej-technologies.com/--escaped_anchor:d4ebd700ae3c0b9b55c445e91755d368--/jprofiler_linux_5_1_2.sh
(Eclipse的下载:
http://www.--escaped_anchor:35fe226434885e220587fb7f1b781d6b--.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.3.1.1-200710231652/eclipse-sourceBuild-srcIncluded-3.3.1.1.zip&url=http://download.actuatechina.com/--escaped_anchor:35fe226434885e220587fb7f1b781d6b--/eclipse/downloads/drops/R-3.3.1.1-200710231652/eclipse-sourceBuild-srcIncluded-3.3.1.1.zip&mirror_id=385)
来源:
http://www.ej-technologies.com/download/--escaped_anchor:d4ebd700ae3c0b9b55c445e91755d368--/files.php
http://www.ej-technologies.com/download/--escaped_anchor:d4ebd700ae3c0b9b55c445e91755d368--/trial.php
2.安装,
运行jprofiler_windows_5_1_2.exe,安装到d:\Program Files\jprofiler5
安装的过程中可以选择与IDE整合,也可以在安装完成后,运行Jprofiler的时候再整合。
3.整合到Eclipse,
先启动 JProfiler :
开始菜单–>所有程序–>JProfiler 5 –>JProfiler,输入注册码。(注册码是在网上某个博客找到的
参考 : http://serendipityspaces.spaces.live.com/blog/cns!71616649A887E6A!604.entry )
(执行整合前,先关闭Eclipse)
主菜单–> Session –>IDE Intergrations –>选择Eclipse 3.3,,点“Integrate” ,选择Eclipse所在的文件夹。D:\Java\eclipse.
整合成功。
主菜单–>Window–>Customize Perspective –>Commands –>找到Profile ,选中它,再点OK即可。
5.填写注册码的时候,第一位必须是大写字母,第二位必须连接号,
第一个井号前的内容如果填错,Jprofiler不会提示出错。
而在启动Session的时候,而Jprofiler弹出的对话框内容为:
The JVM has Terminated unexpectedly.
Please try the following strategies:
*reduce the -Xmx value of the profiled application
*profile in interpreted mode
*change your profiling settings(e.g. from dynamic instrumentation sampling)
害得我试了半天都不行,
后来仔细看Terminal才发现是提示” Invalid license key”.
JProfiler> Protocol version 25
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 32-bit library
JProfiler> Listening on port: 31757.
JProfiler> Instrumenting native methods.
JProfiler> Native library initialized
JProfiler> Waiting for a connection from the JProfiler GUI …
JProfiler> Using sampling (5 ms)
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> ERROR: Invalid license key. Aborting.
JProfiler> Disconnected.
修改注册码之后,终于正常启动了。
正常启动的Terminal显示内容:
JProfiler> Protocol version 25
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 32-bit library
JProfiler> Listening on port: 31759.
JProfiler> Instrumenting native methods.
JProfiler> Native library initialized
JProfiler> Waiting for a connection from the JProfiler GUI …
JProfiler> Using sampling (5 ms)
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> Hotspot compiler enabled
JProfiler> Starting com/lizongbo/smpp/server/Main …
Listening on port a 5435
参考资料:
JProfiler解决Java服务器的性能跟踪
原文:http://www.blogjava.net/anymobile/articles/28248.html
(转载: http://www.duduwolf.com/wiki/2007/311.html)