`
sunxboy
  • 浏览: 2883699 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

YourKit Java Profiler 剖析远程服务器

阅读更多

先到 YourKit.Java.Profiler.v9.0.3.For.Windows.Linux 下载 windows 和 linux 版。

把都解压到不同的目录如 D:\profile\YourKit.Java.Profiler.v9.0.3.Incl.Keygen.and 和
D:\profile\YourKit.Java.Profiler.v9.0.3.Linux.Incl.Keygen.and。

1、解压出 yjp-9.0.3.exe 安装。完了后,双击 D:\profile\YourKit.Java.Profiler.v9.0.3.Incl.Keygen.and\iNViSiBLE\keygen.bat 然后点“patch”,然后选择 D:\Program Files\YourKit Java Profiler 9.0.3\lib\yjp.jar

2、输入用户名,点“Gengerate”,复制出 key。

3、运行 yourkit profiler,输入刚才复制出的 key 就好了。

然后就可正常运行了。

剖析远程服务器还需要在 linux 的安装 yourkit profiler(以控制台行动不需要 License),把解压出来的 yjp-9.0.3-linux.tar.bz2 上传到服务器,如:/home/admin/yjp-9.0.3-linux.tar.bz2

1、在 linux 解压 yjp-9.0.3-linux.tar.bz2,并运行。

  1. cd  /home/admin/  
  2. tar  xfj yjp-9.0.3-linux. tar .bz2  
  3. cd  yjp-9.0.3  
  4. #生成启动脚本   
  5. java -jar lib/yjp.jar -integrate  
cd /home/admin/
tar xfj yjp-9.0.3-linux.tar.bz2
cd yjp-9.0.3
#生成启动脚本
java -jar lib/yjp.jar -integrate

在生成启动脚本期间,要选择。如下:

  1. [admin@v022185 ~/yjp-9.0.3]$ java -jar lib/yjp.jar -integrate  
  2. Choose server to integrate with:  
  3. 1) Geronimo  
  4. 2) JBoss 2.x/3.x/4.x  
  5. 3) Jetty HTTP Server 5.x  
  6. 4) JRun 4  
  7. 5) Orion Application Server 1.5.x/2.x  
  8. 6) Resin 2.x/3.x  
  9. 7) Sun Application Server / GlassFish  
  10.  <img src="http://blog.chenlb.com/wp-includes/images/smilies/icon_cool.gif" alt="8)" class="wp-smiley"> Tomcat 3/4/5/6  
  11. 9) WebLogic 9/10  
  12. 10) WebSphere Application Server 7  
  13. 11) Generic server (use if your server is not on the list)  
  14. Enter number which corresponds to your server (0 to exit) and press Enter:  
  15. >2  
  16. Please specify whether the server runs on a 32-bit JVM or a 64-bit JVM.  
  17. Hint: If you are not sure what to choose, choose "32-bit JVM". If with this choice the server does not start with profiling, re-run the integration and choose "64-bit Java" option.  
  18. 1) 32-bit JVM  
  19. 2) 64-bit JVM  
  20. >2  
  21. Location of JBoss startup script (<JBOSS_HOME>/bin/run.sh):  
  22. >/home/admin/yjp-9.0.3/jboss_run.sh  
  23.   
  24. Startup options configuration: step 1 of 5  
  25. Should option 'disablestacktelemetry' be specified?  
  26. 1) Yes (recommended to minimize profiling overhead in production)  
  27. 2) No  
  28. >1  
  29. Startup options configuration: step 2 of 5  
  30. Should option 'disableexceptiontelemetry' be specified?  
  31. 1) Yes (recommended to minimize profiling overhead in production)  
  32. 2) No  
  33. >1  
  34. Startup options configuration: step 3 of 5  
  35. Should option 'builtinprobes=none' be specified?  
  36. 1) Yes (recommended to minimize profiling overhead in production)  
  37. 2) No  
  38. >1  
  39. Startup options configuration: step 4 of 5  
  40. Should option 'delay=10000' be specified?  
  41. 1) Yes (recommended)  
  42. 2) No  
  43. >1  
  44. Startup options configuration: step 5 of 5  
  45. Please specify comma-separated list of additional startup options, or press Enter for no additional options:  
  46. >  
  47. Startup script to be used for profiling has been successfully created:  
  48.   
  49. /home/admin/yjp-9.0.3/jboss_run_with_yjp.sh  
[admin@v022185 ~/yjp-9.0.3]$ java -jar lib/yjp.jar -integrate
Choose server to integrate with:
1) Geronimo
2) JBoss 2.x/3.x/4.x
3) Jetty HTTP Server 5.x
4) JRun 4
5) Orion Application Server 1.5.x/2.x
6) Resin 2.x/3.x
7) Sun Application Server / GlassFish
 8)
 Tomcat 3/4/5/6
9) WebLogic 9/10
10) WebSphere Application Server 7
11) Generic server (use if your server is not on the list)
Enter number which corresponds to your server (0 to exit) and press Enter:
>2
Please specify whether the server runs on a 32-bit JVM or a 64-bit JVM.
Hint: If you are not sure what to choose, choose "32-bit JVM". If with this choice the server does not start with profiling, re-run the integration and choose "64-bit Java" option.
1) 32-bit JVM
2) 64-bit JVM
>2
Location of JBoss startup script (<JBOSS_HOME>/bin/run.sh):
>/home/admin/yjp-9.0.3/jboss_run.sh

Startup options configuration: step 1 of 5
Should option 'disablestacktelemetry' be specified?
1) Yes (recommended to minimize profiling overhead in production)
2) No
>1
Startup options configuration: step 2 of 5
Should option 'disableexceptiontelemetry' be specified?
1) Yes (recommended to minimize profiling overhead in production)
2) No
>1
Startup options configuration: step 3 of 5
Should option 'builtinprobes=none' be specified?
1) Yes (recommended to minimize profiling overhead in production)
2) No
>1
Startup options configuration: step 4 of 5
Should option 'delay=10000' be specified?
1) Yes (recommended)
2) No
>1
Startup options configuration: step 5 of 5
Please specify comma-separated list of additional startup options, or press Enter for no additional options:
>
Startup script to be used for profiling has been successfully created:

/home/admin/yjp-9.0.3/jboss_run_with_yjp.sh

其实就在 jboss_run_with_yjp.sh 加个 jvm 启动参数:

  1. -agentpath:/home/admin/yjp-9.0.3/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none,delay=10000,sessionname=JBoss  
-agentpath:/home/admin/yjp-9.0.3/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none,delay=10000,sessionname=JBoss

可以参数自己的环境手动写,sessionname 是随便写吧(没验证过)。

用带 yjp 参数启动 jboss。就可以剖析远程服务器。

在本地机 windows 用界面观察。在欢迎界面中有个 “Connect to remote application ...” 链接。可以输入 host:post。

注意 yourkit 的是在 10001 - 10010 中按顺序来决定哪个端口使用(有点不理解为什么不在启动 jvm 参数中指定)。

比如:192.168.1.100:10001。然后就可以看到界面了:

yourkit-profiler

yourkit profiler 界面

分享到:
评论
2 楼 daijunjian 2013-01-05  
我刚安装好,学习了
1 楼 chenlb 2010-09-11  
http://blog.chenlb.com/2010/09/yourkit-java-profiler-monitor-remote-server.html

相关推荐

    YourKit Java Profiler 2017 破解版本

    YourKit Java Profiler 2017 破解版本,仅供学习交流,如需商用,请到官方网站下载正版软件

    YourKit Java Profiler 2019.01 最新破解版 build 111

    最新YourKit Java Profiler 2019.01 最新破解版 build 111 绿色安装。 欢迎大家试用。 免责声明:这只是供个人开发爱好者使用,如用于商业或公司目的,请购买正版,否则由此产生的后果,本人概不负责。 毕竟这只是...

    YourKit Java Profiler :专业Java剖析工具:

    YourKit Java Profiler :专业Java剖析工具:YourKit Java Profiler 发布。CPU和内存的剖析历来是很困难的,YourKit创造出了革命性的剖析工具,应用在研发和生产阶段,为专业的Java开发者带来了无比的好处。 ...

    yourkit java profiler 2015 注册码

    yourkit java profiler 2015 注册码 实测可进行正常安装 服务器进程内存分析不可多得的工具

    YourKit Java Profiler v9.5.0.

    【标题】"YourKit Java Profiler v9.5.0." 是一款专业的Java性能分析工具,专注于帮助开发者和系统管理员优化Java应用程序的性能。这款工具提供了深入的内存和CPU使用情况分析,使得用户能够识别并解决性能瓶颈,...

    YourKit Java Profiler 2017 破解版

    YourKit Java Profiler 2017 破解版YourKit Java Profiler 2017 破解版YourKit Java Profiler 2017 破解版YourKit Java Profiler 2017 破解版

    YourKit Java Profiler 2019.08 build 141

    在提供的压缩包文件中,`YourKit-JavaProfiler-2019.8-b141.exe`是Windows平台上的安装程序,用户可以通过这个文件安装和运行YourKit Java Profiler。`yourkit.jar`是程序的主要可执行文件,包含所有的库和组件。`...

    YourKit Java Profiler 2015 破解版 build 15050

    最新YourKit Java Profiler 2015破解版 build 15050 绿色安全 YourKit Java Profiler是目前最好的一款Java Profiler软件

    YourKit Java Profiler 2020.09 build 410

    3. **YourKit-JavaProfiler-2020.9-b410.exe**:这是YourKit Java Profiler的安装程序,用户可以通过运行这个文件来安装和配置该性能分析工具。 4. **readme.txt**:这个文件通常包含软件的使用说明、安装指南、...

    YourKit Java Profiler 2015 最新破解版 build 15084

    最新YourKit Java Profiler 2015破解版 build 15084 绿色安装。 先前破解的15050版本,破的不完整,偶尔有闪退和打不开snapshot等问题。 这次解的全一些。欢迎大家试用。 免责声明:这只是供个人开发爱好者使用,如...

    YourKit Java Profiler 8 keygen

    YourKit Java Profiler 是业界领先的Java剖析工具。CPU和内存的剖析历来是很困难的,YourKit创造出了革命性的剖析工具,应用在研发和生产阶段,为专业的Java开发者带来了无比的好处。 YourKit Java Profiler keygen...

    yourkit java profiler for unix

    在Unix环境下,YourKit Java Profiler能够无缝集成到开发流程中,支持远程连接到正在运行的应用程序进行分析,无需重启服务。这对于生产环境的性能调试尤其重要,因为它允许在不影响用户的情况下进行诊断。 标签...

    YourKit_Java_Profiler_12.0.2_Downloadly.ir.rar

    《深入解析YourKit JavaProfiler 12.0.2与Delphi的整合应用》 YourKit Java Profiler是一款强大的性能分析工具,专为Java应用程序设计,用于深入剖析内存占用、CPU消耗以及线程行为等问题。在12.0.2版本中,它提供...

    YourKit Java Profiler 2017 最新破解版 build 57

    最新YourKit Java Profiler 2017.02破解版 build 57 绿色安装。 欢迎大家试用。 免责声明:这只是供个人开发爱好者使用,如用于商业或公司目的,请购买正版,否则由此产生的后果,本人概不负责。 毕竟这只是业余...

    YourKit Java Profiler 2023.09 build 109

    YourKit Java Profiler 2023.09 build 109 * JVM support * Linux support * macOS support * Windows support * Java Flight Recorder support

    YourKit java profiler

    YourKit Java Profiler 是业界领先的Java程序性能分析工具。程序的CPU和内存性能剖析历来是很困难的,YourKit创造出了革命性的性能分析工具,可应用在研发和生产阶段,为专业的Java开发者带来了无比的好处。

    YourKit Java Profiler

    YourKit Java Profiler yjp-2015-build-15084-crack.zip

    YourKit-JavaProfiler-2017.02-b68.zip

    【文件名称列表】: "YourKit-JavaProfiler-2017.02" 这个文件名可能是该版本的安装包或解压后的文件夹,包含了所有用于运行和配置YourKit Java Profiler的必要组件。 **详细知识点**: 1. **YourKit Java Profiler*...

    yourkit破解版

    YourKit Java Profiler,注册机,破解: 使用方法: 用bat打开注册机,先点击patch按钮打补丁,选择yourkit安装目录下的/lib/yjp.jar然后确定,打补丁后生成注册码就可以了

    YourKit_Java_Profiler_2018.04_Build_71_Downloadly.ir.rar

    【标题】"YourKit_Java_Profiler_2018.04_Build_71_Downloadly.ir.rar" 指的是YourKit公司的一款Java性能分析工具的2018.04版本,具体构建号为71。YourKit Java Profiler是一款广泛使用的Java应用程序性能监视和分析...

Global site tag (gtag.js) - Google Analytics