服务器linux+tomcat,本机windows,简单记录一下Jprofiler remote的使用方法
1、服务端安装jprofiler
chmod +x jprofiler_linux_8_0_2.sh ./jprofiler_linux_8_0_2.sh -c
2、客户端配置
Integration type: [Generic application] Selected JVM: Oracle 1.6.0 (hotspot) Startup mode: Startup immediately, connect later with the JProfiler GUI (1) Please insert -agentpath:/home/admin/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849,nowait into the start command of your remote application right after the java command. A remote session named Remote application on 10.235.144.94 will be created that connects to a running instance of the remote application that is started with the modified start command.
有3种启动模式,可以通过名字看出有什么区别的,nowait是服务器正常启动,不需要等待jprofiler连接。而下面这种模式,则一直等待jprofiler的连接。。(等到花儿也谢了)
Integration type: [Generic application] Selected JVM: Oracle 1.6.0 (hotspot) Startup mode: Wait for a connection from the JProfiler GUI (1) Please insert -agentpath:/home/admin/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849 into the start command of your remote application right after the java command. A remote session named Remote application on 10.235.144.94 will be created that connects to a running instance of the remote application that is started with the modified start command.
3、服务端配置,根据上面的提示信息,在java启动参数行加上,如:
JAVA_OPTS="$JAVA_OPTS -agentpath:/home/admin/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849,nowait" export JAVA_OPTS
4、启动tomcat时,如果是“wait for...”模式,则会出现下方的提示信息,赶紧连吧
JProfiler> Protocol version 38 JProfiler> Using JVMTI JProfiler> JVMTI version 1.1 detected. JProfiler> 64-bit library JProfiler> Listening on port: 8849. JProfiler> Instrumenting native methods. JProfiler> Can retransform classes. JProfiler> Can retransform any class. JProfiler> Native library initialized JProfiler> VM initialized JProfiler> Waiting for a connection from the JProfiler GUI ...
如果是“no wait”模式,则不会有任何提示,服务器启动时即可用jprofiler连接,连接时会出现以下信息:
JProfiler> Using dynamic instrumentation JProfiler> Time measurement: elapsed time JProfiler> CPU profiling enabled JProfiler> Updating configuration. JProfiler> Retransforming 5698 class files.
参考
http://www.cnblogs.com/jayzee/p/3184087.html
http://www.blogjava.net/anymobile/articles/28248.html
相关推荐
criminal profiling,geographic profiling
Profiling Python: good book on profiling python
Through the use of a computerized geographic profiling system and two case studies, this chapter examines the applicability of geographic profiling in the context of terrorist attacks. The findings of...
Profiling all paths.pdf
Linux Profiling at Netflix.pdf
mysql优化之profiling的用法
We begin by describing some of the mathematical foundations of the geographic profiling problem. We then present a new mathematical framework for the geographic profiling problem based on Bayesian ...
Background Geographic Profiling •Outline the research project •Overview of the software used •Research results •Outline some investigative strategies
profiling:一个交互式 Python 性能分析工具
生成数据报告的安装包pandas-profiling,当使用命令直接下载,通常会网络超时,导致不能正常安装,此时可以下载这里的文件,具体操作见博客,https://blog.csdn.net/christineNAN/article/details/105
从pandas-profiling官方github下载好的pandas-profiling包,目前(2020年6月18日)最新版本,安装方式:pip install 压缩包路径
资源来自pypi官网。 资源全名:pandas-profiling-2.0.3.tar.gz
precise power delay profiling with commodity <PPT > mobicom2015.09
资源分类:Python库 所属语言:Python 资源全名:pandas-profiling-3.1.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
本主题包含以下部分。 使用性能分析工具 事件追踪 穿孔器 ETW 跟踪查看器 视觉分析器 工作集分析器 其他性能工具资源 相关话题 具体内容见链接:...
12个A族水稻热激转录因子基因的表达模式,刘爱玲,陈信波,热激转录因子(Hsfs)是热激反应的主要调控因子,对热激反应的调节起着重要的作用。本研究利用半定量RT-PCR的方法检测了12个A族OsHsf 基因�
KIC 测试软件,主要用于SMT回流焊,波峰焊测试温度使用
Geographical profiling is an investigative technique that analyzes the spatial pattern of a related series of crime locations in order to predict the location of the offender’s residence. After ...
trace32支持大尺寸内存实时跟踪和实时特性描绘,该文档资料具体介绍了这两种方法的区别、用途以及配置方法。
Laravel开发-profiling 暂无描述