`

Jprofiler 5.1.2 配置。

    博客分类:
  • JAVA
阅读更多
作者:lizongbo 发表于:18:34. 星期一, 三月 31st, 2008
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明。
http://618119.com/archives/2008/03/31/77.html
Jprofiler 5.1.2 配置。

1.下载

http://download.ej-technologies.com/jprofiler/jprofiler_windows_5_1_2.exe

http://download.ej-technologies.com/jprofiler/jprofiler_linux_5_1_2.sh

(Eclipse的下载:

http://www.eclipse.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/eclipse/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/jprofiler/files.php

http://www.ej-technologies.com/download/jprofiler/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.
整合成功。

4.在Eclipse里配置JProfiler.

主菜单–>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)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics