Ever wondered how to configure JProfiler 6 for Oracle WebLogic 11g application server? Here are the steps:
1. Download and install JProfiler 6. If you don't have the license, you can install the 10-day trial version. Follow the installation notes and start JProfiler. Assume the JProfiler installation path is <jprofiler-dir>, start the JProfiler by:
# <jprofiler-dir>/bin/jprofiler
2. Use the Integration Wizard to create a start script for WebLogic. Select Session -> Integration Wizard -> New Server Integration from the menu.
- In the 'Choose Wizard' screen, select 'Oracle WebLogic Server 11g' from the drop down list;
- In the 'Local or Remote' screen, select 'On this computer';
- In the 'Profiled JVM' screen, choose the JVM used by your WebLogic server. In my case, I choose 'Sun JVM 1.6.0 hotspot';
- In the 'Startup Mode' screen, select 'Startup immediately, connect later with the JProfiler GUI';
- In the 'Locate Start Script' screen, select the location for startWebLogic.sh script, which is used to start your WebLogic instance;
- Select default port which is 8849 in the 'Choose Profiling Port' screen;
- Check modifications and click next.
- g. Now the integration is completed. Select 'No, I will start the session later' and click finish.
3. Go to WebLogic bin directory, you will see a new start script named 'startWebLogic_jprofiler.sh' to be used for profiling is created by JProfiler. View the script you can see some lines are added by the integration wizard, such as
JPROFILER_OPTIONS="-agentpath:/opt/jprofiler6/bin/solaris-sparcv9 \ /libjprofilerti.so=port=8849,nowait,id=115,config=/root/.jprofiler6/config.xml
\ $JPROFILER_OPTIONS" export JPROFILER_OPTIONS
Use this new start script to start your WebLogic server. You will see JProfiler prompts both on the commond line and in server startup log.
4. Go to JProfiler, select 'Session' -> 'New Session' from the menu, input a session name, select 'Remote' for Session Type, which is used to profile your Java EE applications. Local session type is used for standalone applications. You can just use the default values for 'Remote Settings'. Customize the Filter, Profiling and Trigger Settings as you wish. Click ok, wait for a little while and you will see all the objects displayed! The default view is memory profiling, you can select heap walker, CPU view, thread view etc. Now you are done with JProfiler configuration and ready for profiling your application on WebLogic.
Close JProfiler window and the WebLogic server will be still running but the profiling stops.
Running JProfiler during a run can slow down the server as it is very resource consuming. So it is not recommended to run JProfiler in production environments. You should run JProfiler only when it is necessary, e.g., when you suspect there are memory leaks or thread conflicts, or at the point you want to see what's happening.
转自这里
分享到:
相关推荐
Oracle Solaris 11.1 Configuring and Administering Oracle Solaris11.1Networks-152
WebLogic 11g 多机集群配置 WebLogic 11g 多机集群配置是指在多个服务器上安装和配置 WebLogic 11g 服务器,以实现高可用性和负载均衡。在本文中,我们将详细介绍如何配置 WebLogic 11g 多机集群,包括管理服务器、...
### Oracle Real Application Clusters (RAC) on Oracle VM Server for SPARC 2.0 #### Introduction In the realm of enterprise computing, organizations are constantly seeking ways to reduce costs while ...
Oracle Solaris 11.3 Configuring an Oracle Solaris 11.3 System as a Router or a Load Balancer-96
Oracle Solaris 11.2 Configuring an Oracle Solaris 11.2 System as a Router or a Load Balancer-85
JBoss in Action is the first book to focus on teaching readers in detail how to use the JBoss application server. Unlike other titles about JBoss, the authors of JBoss in Action go deeper into the ...
[Packt Publishing] Oracle Goldengate 11g 开发技巧大全 (英文版) [Packt Publishing] Oracle Goldengate 11g Complete Cookbook (E-Book) ☆ 图书概要:☆ Over 60 simple and easy-to-follow recipes to ...
这本书《Configuring and Managing Printing in Oracle Solaris 11.3》详细阐述了如何在Oracle Solaris 11.3操作系统中设置和维护打印环境。出版于2017年12月,此书涵盖了从基础概念到高级技巧的多个层面,旨在确保...
在Oracle Solaris 11.1中配置和管理打印是一项重要的系统管理任务,涉及到服务器、工作站及网络设备的日常操作。Oracle Solaris操作系统是企业级的UNIX变体,提供了先进的打印服务来支持企业的需求。本指南《Oracle ...
1. **Oracle Solaris 11.2系统打印架构**:Oracle Solaris 11引入了一个全新的打印架构,称为“ZFS打印服务”(ZFS Printing Services)。这个架构基于ZFS文件系统,提供了更高效、可靠和灵活的打印解决方案。 2. *...
This book helps database and system administrators succeed in managing Oracle Application Express (APEX) environments. Focus is on creating the right combination of scalability, high-availability, ...
Configuring Oracle Applications 11i With Oracle Portal (Doc ID 146469.1)
Oracle Solaris 11.3 Configuring and Managing Network Components in Oracle Solaris 11.3-168
Oracle Solaris 11.2 Configuring and Administering Network Components in Oracle Solaris 11.2-156
- Configuring JProfiler to work with popular application servers like Tomcat, WebLogic, and WebSphere. - Setting up remote profiling sessions for applications deployed on application servers. - ...
本文档提供了在 Solaris 平台上使用 VERITAS Database Edition™ for Oracle 配置和调优存储相关参数的指导原则。VERITAS Database Edition for Oracle 是一套集成的存储管理软件产品,能够增强 Oracle 数据库的性能...
### JBoss in Action: Configuring the JBoss Application Server #### 关键知识点概览 - **JBoss Application Server**: 一种开源的应用服务器,适用于Java应用程序的部署与管理。 - **JBoss in Action**: 一本...
6 Configuring the Oracle Network Environment 7 Managing Database Storage Structures 8 Administering User Security 9 Managing Data Concurrency 10 Managing Undo Data 11 Implementing Oracle Database...
一、依赖包的安装 二、Creating Required Operating System Groups and Users 三、Configuring Kernel Parameters 配置内核参数 ...五、Configuring the oracle User's Environment 六、Installing Oracle Database