Install JProfiler
Install the JProfiler GUI. It works on either Windows or Linux. The GUI need not be run on the same host as the application you will be profiling, however you will need the agent libs and jar available on the host to be profiled, so you may wish to install JProfiler in both places.
Profiling the Engine
Copy agent.jar to the engine JRE
Make sure JProfiler's agent.jar is available in the classpath. The easiest way to do this is to copy agent.jar from {JPROFILER_HOME}/bin to {ENGINE_HOME}/jre/lib/ext
Make the native JProfiler libraries available to the engine JRE
On Linux, set LD_LIBRARY_PATH appropriately before starting the engine. Set it as follows in the same terminal as you will use to start the engine:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:{JPROFILER_HOME}/bin/linux-x86/
On Windows, it's easiest just to copy the needed dlls to the engine directory. Copy all dlls (jprofiler.dll, jprofilerti.dll, libexpat.dll, and mingwm10.dll) from {JPROFILER_HOME}/bin/windows to the root of {ENGINE_HOME}.
Update engine JVM parameters
In the Fabric UI, go to Engine->Engine Configuration, and choose the configuration for the engine you want to profile. In the Engine JVM section, set Command-line Arguments to:
if JVM <=1.4.2
-Xrunjprofiler:port=8849 -Xbootclasspath/a:{ENGINE_HOME}/jre/lib/ext/agent.jar
if JVM >=1.5.0
-agentlib:jprofilerti=port=8849 -Xbootclasspath/a:{ENGINE_HOME}/jre/lib/ext/agent.jar
(Make sure you specify the full path to the agent.jar in the engine jre dir as above, not the path to the one in the JProfiler install directory, as the JProfiler GUI might recommend.)
Start (or restart) the engine
First, be sure the daemon is configured to start exactly one engine. You cannot run more than one engine as multiple JVMs would both try to bind to the profiling port.
On Linux, be sure to do this from an environment where LD_LIBRARY_PATH is updated as above.
On Windows, start it the normal way.
The engine daemon log should show:
JProfiler> Listening on port: 8849.
JProfiler> Native library initialized
JProfiler> If output stops here, please remove -Xdebug from the command line
JProfiler> Waiting for a connection from the JProfiler GUI ...
Connect JProfiler
Start JProfiler GUI, and create a Remote Application session using the wizard. The default values should be fine, just be sure to set the appropriate hostname if it is not local.
In General Settings for the session, add the engine JVM ({ENGINE_HOME}/jre) under the Java VMs tab. Make this the default JVM.
You can now connect the session.
Start profiling
分享到:
相关推荐
precise power delay profiling with commodity <PPT > mobicom2015.09
Data Profiling and Pipeline Processing with Spark
Eugene Chan (IBM Canada) Jonathan West(IBM Canada) 两个人作的TPTP平台配置步骤 英文文档
criminal profiling,geographic profiling
Through the use of a computerized ...findings of this examination are somewhat mixed with a final discussion of how principles of geographic profiling may be better developed and applied to terrorism.
Profiling Python: good book on profiling python
Linux Profiling at Netflix.pdf
Profiling all paths.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 ...
profiling:一个交互式 Python 性能分析工具
Background Geographic Profiling •Outline the research project •Overview of the software used •Research results •Outline some investigative strategies
从pandas-profiling官方github下载好的pandas-profiling包,目前(2020年6月18日)最新版本,安装方式:pip install 压缩包路径
资源来自pypi官网。 资源全名:pandas-profiling-2.0.3.tar.gz
资源分类:Python库 所属语言:Python 资源全名:pandas-profiling-3.1.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
生成数据报告的安装包pandas-profiling,当使用命令直接下载,通常会网络超时,导致不能正常安装,此时可以下载这里的文件,具体操作见博客,https://blog.csdn.net/christineNAN/article/details/105
高精度时间频率的生成
基因表达谱介导的子宫内膜癌临床精准治疗的建立,周静怡,殷复粉,子宫内膜癌是一种常见的妇科疾,许多早期子宫内膜癌,尤其是子宫内膜样腺癌预后较好。研究表明存在一些分期及组织学特征相同的早
The purpose of this 'HOWTO' is to present a set of common and generally useful tracing and profiling idioms along with their application (as appropriate) to each tool, in the context of a general-...