- 浏览: 2831396 次
- 性别:
- 来自: 武汉
文章分类
- 全部博客 (1173)
- 名言警句 (5)
- 心情随笔 (50)
- 数据库 (57)
- Java基础 (241)
- J2EE框架 (91)
- 数据结构 (12)
- 程序设计 (21)
- WEB技术 (128)
- 网络日志 (12)
- IT资讯 (247)
- linux (64)
- solaris (2)
- 其它 (143)
- WebService (4)
- 日语学习 (2)
- 机器人 (5)
- Android (5)
- cgywin (3)
- Game (1)
- DWR (1)
- spring (8)
- canvas (1)
- Guava (3)
- Modbus (5)
- 测试 (6)
- mongodb (9)
- Quartz (2)
- Cron (1)
- windows (2)
- 持续集成 (1)
- bootstrap (3)
- 结对编程 (1)
- nodejs (1)
- Netty (1)
- 安全 (3)
- webstorm (2)
- sparkline (1)
- Job (1)
- git (3)
- Maven (3)
- knockout (5)
- jquery (1)
- bower (1)
- docker (1)
- confluence (4)
- wiki (1)
- GoogleMap (1)
- jekyll (10)
- ruby (2)
- npm (3)
- browserify (1)
- gulp (3)
- openwrt (1)
- discuz (3)
- 输入法 (1)
- JPA (1)
- eclipse (2)
- IntelliJ (1)
- css (1)
- 虚拟机 (1)
- 操作系统 (1)
- azkaban (2)
- scrum (1)
最新评论
-
pangxiea_:
你好, 想请问一下 Linux下 这么使用rxtxcomm 在 ...
使用Java进行串口通信 -
abababudei:
请教一下,这个您是怎么解决的:/dev/ttyS2enteri ...
Java应用程序的MODBUS通讯 -
xuniverse:
hannibal005 写道楼主,我问下 request.se ...
用javascript与java进行RSA加密与解密 -
atxkm:
找了一下午,终于找到了
gulp 拷贝文件时如何移除文件目录结构 -
kalogen:
gtczr 写道非常感谢,经过我自己的修改,已经完美实现。发出 ...
用javascript与java进行RSA加密与解密
先到 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,并运行。
- cd /home/admin/
- tar xfj yjp-9.0.3-linux. tar .bz2
- cd yjp-9.0.3
- #生成启动脚本
- 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
在生成启动脚本期间,要选择。如下:
- [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
- <img src="http://blog.chenlb.com/wp-includes/images/smilies/icon_cool.gif" alt="8)" class="wp-smiley"> 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
[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 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 启动参数:
- -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。然后就可以看到界面了:
评论
发表评论
-
高级Java程序员值得拥有的10本书
2015-05-04 07:24 766Java是时下最流行的编程语言之一。市面上也出现了适合初学者 ... -
深入理解java异常处理机制
2015-01-30 09:30 12831. 引子 try…catch…fi ... -
java 运行时参数设置
2015-01-07 09:13 824JVM的运行时参数: -Xms为执行单元内存的1/4, ... -
每个Java开发者都应该知道的5个JDK工具
2014-12-29 12:37 1106JDK是Java语言的软件开 ... -
使用双重锁判定可以大幅降低锁的征用
2014-12-29 12:30 709class ObjInstance { //单例 pri ... -
MAVEN Scope使用说明
2014-11-24 09:40 718在Maven的依赖管理中,经常会用到依赖的scope设置。这 ... -
Spring4 quartz job xml configuration
2014-11-11 09:46 14061. 定义job details public ... -
Add items into list in one line using guava
2014-11-10 10:54 696//@formatter:off fina ... -
配置动态读取(变化)文件 in Spring
2014-11-10 08:51 12931. 从环境变量中读取路径: <bean id=&q ... -
JAVA实现AES加密与解密
2014-11-04 15:34 616package com.eifesun.monitor.up ... -
Netty4.x分析
2014-07-31 11:06 1422官网定义: netty是一个异步、事件驱动的网络应用框架,用 ... -
Ways to sort lists of objects in Java based on multiple fields
2014-07-21 17:19 7361. the first way: Sorting wit ... -
how to parse a String to BigDecimal
2014-07-21 10:08 890private BigDecimal parsePrice( ... -
order list using google guava
2014-07-21 09:08 855Predicate<String> filter ... -
Java 读文件操作
2014-07-08 14:09 8581. only use java core, no exte ... -
怎样使Java 中测试按一定顺序执行
2014-03-10 11:27 1270@FixMethodOrder(MethodSorters. ... -
如何实现在当类初始化时,自动调动某个方法
2014-02-14 14:44 925有两种思路, 1. 将这个类实现为thread类 (or ... -
持续集成JenkinsAPI常见用法
2014-02-10 13:54 43jenkins(持续集成开源工具)提供了丰富的api接口,基 ... -
Sonar 安装与使用
2014-01-13 10:49 1697Sonar 是一个用于代码质量管理的开放平台。通过插件机制, ... -
源代码管理分析工具 Source Navigator的安装与使用
2014-01-13 09:51 1844Source-Navigator是原来redhat开发的一个 ...
相关推荐
YourKit Java Profiler :专业Java剖析工具:YourKit Java Profiler 发布。CPU和内存的剖析历来是很困难的,YourKit创造出了革命性的剖析工具,应用在研发和生产阶段,为专业的Java开发者带来了无比的好处。 ...
最新YourKit Java Profiler 2019.01 最新破解版 build 111 绿色安装。 欢迎大家试用。 免责声明:这只是供个人开发爱好者使用,如用于商业或公司目的,请购买正版,否则由此产生的后果,本人概不负责。 毕竟这只是...
yourkit java profiler 2015 注册码 实测可进行正常安装 服务器进程内存分析不可多得的工具
YourKit Java Profiler 2017 破解版YourKit Java Profiler 2017 破解版YourKit Java Profiler 2017 破解版YourKit Java Profiler 2017 破解版
最新稳定版本 YourKit Java Profiler 2019.08 build 141 绿色安装。 欢迎大家试用。
最新YourKit Java Profiler 2015破解版 build 15084 绿色安装。 先前破解的15050版本,破的不完整,偶尔有闪退和打不开snapshot等问题。 这次解的全一些。欢迎大家试用。 免责声明:这只是供个人开发爱好者使用,如...
最新YourKit Java Profiler 2015破解版 build 15050 绿色安全 YourKit Java Profiler是目前最好的一款Java Profiler软件
YourKit Java Profiler 是业界领先的Java剖析工具。CPU和内存的剖析历来是很困难的,YourKit创造出了革命性的剖析工具,应用在研发和生产阶段,为专业的Java开发者带来了无比的好处。 YourKit Java Profiler keygen...
The latest stable version: YourKit Java Profiler 2020.09 build 410
YourKit Java Profiler 2017 破解版本,仅供学习交流,如需商用,请到官方网站下载正版软件
最新YourKit Java Profiler 2017.02破解版 build 57 绿色安装。 欢迎大家试用。 免责声明:这只是供个人开发爱好者使用,如用于商业或公司目的,请购买正版,否则由此产生的后果,本人概不负责。 毕竟这只是业余...
YourKit Java Profiler 2023.09 build 109 * JVM support * Linux support * macOS support * Windows support * Java Flight Recorder support
YourKit Java Profiler yjp-2015-build-15084-crack.zip
YourKit Java Profiler 是业界领先的Java程序性能分析工具。程序的CPU和内存性能剖析历来是很困难的,YourKit创造出了革命性的性能分析工具,可应用在研发和生产阶段,为专业的Java开发者带来了无比的好处。
Java Resource Profiler
YourKit_Java_Profiler_12.0.2_Downloadly.ir.rar
JProfiler是一个全功能的Java剖析工具(profiler),JProfiler可以找到性能瓶颈、抓住内存泄漏(memory leaks)、并解决多线程的问题。它让你得以对heap walker作资源回收器的root analysis,可以轻易找出内存泄漏;...
用于代码覆盖率分析,函数分析,Api调用分析
项目检测分析工具,实时获得快照分析项目内存、CPU占用情况等等
YourKit 是一个用于分析Java 与.NET 应用程序的智能工具,YourKit Java Profiler 已经被IT 专业人士与分析师公认为最好的分析工具。通过YourKit 技术解决方案可以以非常高的的专业水平分析出CPU 与内存使用情况。 ...