WebLogic调优与监控.ppt

上传人:laozhun 文档编号:2237075 上传时间:2023-02-04 格式:PPT 页数:28 大小:670.50KB
返回 下载 相关 举报
WebLogic调优与监控.ppt_第1页
第1页 / 共28页
WebLogic调优与监控.ppt_第2页
第2页 / 共28页
WebLogic调优与监控.ppt_第3页
第3页 / 共28页
WebLogic调优与监控.ppt_第4页
第4页 / 共28页
WebLogic调优与监控.ppt_第5页
第5页 / 共28页
点击查看更多>>
资源描述

《WebLogic调优与监控.ppt》由会员分享,可在线阅读,更多相关《WebLogic调优与监控.ppt(28页珍藏版)》请在三一办公上搜索。

1、1,WebLogic Server 性能监控与调优,Overview-1,WebLogic的版本,WebLogic Server 8.1(Java 1.4、J2EE 1.3)WebLogic Server 9.x(Java 5、J2EE 1.4)WebLogic Server 10.0(Java 5、Java EE 5)WebLogic Server 10.3(Java 6、Java EE 5)WebLogic Server 11gR1(10.3.x)(Java 6、Java EE 5)软件授权:自从oracle收购了bea之后,WebLogic的序列号全都开放了,没有必要再去进行破解了。,2

2、,WebLogic 主要使用 的JVM,SUN HotSpot JVMBEA JRockit JVM不同的JVM,其可设置的参数和监控的工具将是不同,后面将分别介绍这两种JVM的设置。在Intel架构和windows平台上,建议使用JRockit JVM,这样可以带来更优的性能。,3,WebLogic实例主要设置内容,启动参数设置主要是设置GC参数线程设置主要是设置线程的数量数据库连接池的设置主要是设置连接池的初始容量和最大容量,4,WebLogic 8.1 启动文件,%DOMAIN_HOME%/startWebLogic.cmd设置实例的运行模式:开发模式/生产模式设置JAVA_HOME设置

3、JAVA_VM:client/server/jrockit设置MEM_ARGS%WL_HOME%commonbincommEnv.cmd设置所有实例都统一使用的参数,5,WebLogic 9.2 启动文件,%WL_HOME%commonbincommEnv.cmd设置所有实例统一的运行参数%DOMAIN_HOME%binsetDomainEnv.cmd设置本实例的运行参数%DOMAIN_HOME%binstartWebLogic.cmd运行启动脚本,6,7,Sun HotSpot Heap 分布,Heap is divided broadly into three areas:Young(Ne

4、w)generationTenured(Old)generationPermanent(Perm)generationYoung generation is further divided into:EdenSurvivor spaces(2),Xmx,8,Tuning GC Manually,New self-tuning feature is not available while tuning JVMs prior to version 1.5 and manual tuning is required.The following are the common tuning parame

5、ters available while tuning the garbage collection manually:Size of the the overall heap-Xmsn-XmxnSize of the generations in the heap-XX:NewSize=n-XX:MaxNewSize=n-XX:NewRatio=n,9,Tuning GC Manually,Common tuning parameters(continued)The size of the survivor spaces in the young generation-XX:Survivor

6、Ratio=nThe size of the permanent generation-XX:PermSize=n-XX:MaxPermSize=nThe threshold for promotion from the young generation to the old generation-XX:MaxTenuringThreshold=nTuning involves either a series of experiments with a specialized tool(or)good judgment to decide that GC was performing well

7、.,Tuning Sun HotSpot JVM-38,10,JRockit Benefits,Weblogic JRockit JVM is designed for server-side applications.It employs adaptive optimization to significantly improve runtime performance.It has adaptive garbage collection and heap management.It offers full support for 32 and 64 bit JRockit on Intel

8、 EM64T/AMD64 and compatibles.JRockit also supports Solaris/Sparc architecture.It offers support for very large heaps on 64 bit platforms.JRockit Mission Control tools suite offers better management,tuning and troubleshooting.,11,Generational Heap-JRockit,In the two-generational model,heap is divided

9、 into two generationsYoung generation(Nursery)Old generationIn a single-spaced model,all the objects are allocated in a single space on the heap.,WebLogic 8.1 实例的线程设置.,线程的设置主要是在weblogic控制台中完成,12,.WebLogic 8.1 实例的线程设置.,13,.WebLogic 8.1 实例的线程设置.,14,WebLogic 8.1 实例的线程设置,15,WebLogic 9.2 实例的线程设置.,线程管理与We

10、bLogic 8.1存在很大的不同,由WebLogic自动去管理。默认情况下,WebLogic提供的线程数量较小,并且在管理控制台上没有修改线程数量的链接。,16,.WebLogic 9.2 实例的线程设置,可以通过手动修改config.xml文件,使用与weblogic 8.1相同的线程设置风格。主要是在中添加以下代码:,17,数据连接池、数据源的主要配置,连接池的初始容量、最大容量、增长容量。是否启用连接泄露配置。是否测试数据库连接。数据库连接的时间设置。,18,Oracle RAC 集群,Oracle RAC(Oracle Real Application Cluster),Oracle

11、数据库的集群。基于共享存储的数据库,具有多个数据库运行实例。tnsnames.ora形式与常规模式不同。,19,Oracle RAC的数据源配置,url 采用oracle tnsname配置的方式:配置WebLogic多池数据源方式:Multipool(WebLogic 8.1)多数据源(WebLogic 9.2),20,Sun HotSpotJConsole,21,JConsole is a JMX-compliant GUI tool that connects to a running JVM,which is started with the management agent.JDK

12、5.0 includes the monitoring and management tool,JConsole.JConsole allows you to see inside the JVM and the application while its running.JConsole provides real time viewing of the performance of applications and shows their resource consumption.,22,JConsole,The management agent in the JVM should be

13、started for monitoring.It can only connect to one JVM at any time.To use JConsole for connecting to a JVM locally,WebLogic Server should be started with the option,to enable the management agent.-Dcom.sun.management.jmxremote,23,Jconsole Remote Monitoring,To enable the JMX agent(JConsole)for remote

14、access,set this system property when you start WebLogic Server or JVM:Dcom.sun.management.jmxremote.port=portNoConnecting remotely through JConsole is the recommended way when monitoring or managing production environments.,Tuning Sun HotSpot JVM-12,SUN HotSpotjvisualvm,Java 6 里自带的一个监控jvm运行状况的工具。%JA

15、VA_HOME%/bin/jvisualvm.exe,24,Oracle JRockit Mission Control,Windows平台下,性能较优的JVM。提供的很好的监控工具,用于监控WebLogic的运行状况。针对不同的JDK 版本,都有对应的安装程序。可以从Oracle网站免费下载 http:/,25,26,BEA JRockit Mission Control,BEA JRockit ships with BEA JRockit Mission Control.These are a group of independent management and monitoring t

16、ools.BEA JRockit Management Console JMX Complaint monitoring toolBEA JRockit Runtime AnalyzerRecords and helps you analyze JVM and running applicationBEA JRockit Memory Leak Detector Detects and finds the cause for memory leaksThe main focus of JRockit Mission Control is to do the necessary instrume

17、ntation with the lowest possible impact on the system.,27,Management Server,The management server in the JRockit VM is disabled by default.To enable the management server,add the following command-line argument to the JVM start script:java-Xmanagement weblogic.Server The default port that the management server uses to connect is 7091.You can change the management server port by setting the following command-line argument:-Djrockit.managementserver.port=,网页数据分析工具HttpWatch,HttpWatch是强大的网页数据分析工具。集成在Internet Explorer工具栏。网页摘要。Cookies管理。缓存管理。消息头发送/接受。字符查询。POST 数据。报告输出。,28,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号