WebLogic调优与监控

上传人:猪** 文档编号:240744144 上传时间:2024-05-04 格式:PPT 页数:28 大小:670.50KB
返回 下载 相关 举报
WebLogic调优与监控_第1页
第1页 / 共28页
WebLogic调优与监控_第2页
第2页 / 共28页
WebLogic调优与监控_第3页
第3页 / 共28页
点击查看更多>>
资源描述
2007 BEA Systems,Inc.1 WebLogic Server 性能监控与调优性能监控与调优 Overview-1 2007 BEA Systems,Inc.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 2007 BEA Systems,Inc.WebLogic 主要使用主要使用 的的JVMSUN HotSpot JVMBEA JRockit JVM不同的JVM,其可设置的参数和监控的工具将是不同,后面将分别介绍这两种JVM的设置。在Intel架构和windows平台上,建议使用JRockit JVM,这样可以带来更优的性能。3 2007 BEA Systems,Inc.WebLogic实例主要设置内容实例主要设置内容启动参数设置主要是设置GC参数线程设置主要是设置线程的数量数据库连接池的设置主要是设置连接池的初始容量和最大容量4 2007 BEA Systems,Inc.WebLogic 8.1 启动文件启动文件%DOMAIN_HOME%/startWebLogic.cmd设置实例的运行模式:开发模式/生产模式设置JAVA_HOME设置JAVA_VM:client/server/jrockit设置MEM_ARGS%WL_HOME%commonbincommEnv.cmd设置所有实例都统一使用的参数5 2007 BEA Systems,Inc.WebLogic 9.2 启动文件启动文件%WL_HOME%commonbincommEnv.cmd设置所有实例统一的运行参数%DOMAIN_HOME%binsetDomainEnv.cmd设置本实例的运行参数%DOMAIN_HOME%binstartWebLogic.cmd运行启动脚本6 2007 BEA Systems,Inc.7 Sun HotSpot Heap 分布分布Heap is divided broadly into three areas:Young(New)generationTenured(Old)generationPermanent(Perm)generationYoung generation is further divided into:EdenSurvivor spaces(2)Xmx 2007 BEA Systems,Inc.8 Tuning GC ManuallyNew 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 parameters 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 2007 BEA Systems,Inc.9 Tuning GC ManuallyCommon tuning parameters(continued)The size of the survivor spaces in the young generation-XX:SurvivorRatio=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.Tuning Sun HotSpot JVM-38 2007 BEA Systems,Inc.10 JRockit BenefitsWeblogic 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 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.2007 BEA Systems,Inc.11 Generational Heap-JRockitIn the two-generational model,heap is divided into two generationsYoung generation(Nursery)Old generationIn a single-spaced model,all the objects are allocated in a single space on the heap.NurseryOld SpaceXnsXmxXmx 2007 BEA Systems,Inc.WebLogic 8.1 实例的线程设置实例的线程设置.线程的设置主要是在weblogic控制台中完成12 2007 BEA Systems,Inc.WebLogic 8.1 实例的线程设置实例的线程设置.13 2007 BEA Systems,Inc.WebLogic 8.1 实例的线程设置实例的线程设置.14 2007 BEA Systems,Inc.WebLogic 8.1 实例的线程设置实例的线程设置15 2007 BEA Systems,Inc.WebLogic 9.2 实例的线程设置实例的线程设置.线程管理与WebLogic 8.1存在很大的不同,由WebLogic自动去管理。默认情况下,WebLogic提供的线程数量较小,并且在管理控制台上没有修改线程数量的链接。16 2007 BEA Systems,Inc.WebLogic 9.2 实例的线程设置实例的线程设置可以通过手动修改config.xml文件,使用与weblogic 8.1相同的线程设置风格。主要是在中添加以下代码:17 2007 BEA Systems,Inc.数据连接池、数据源的主要配置数据连接池、数据源的主要配置连接池的初始容量、最大容量、增长容量。是否启用连接泄露配置。是否测试数据库连接。数据库连接的时间设置。18 2007 BEA Systems,Inc.Oracle RAC 集群集群Oracle RAC(Oracle Real Application Cluster),Oracle数据库的集群。基于共享存储的数据库,具有多个数据库运行实例。tnsnames.ora形式与常规模式不同。19 2007 BEA Systems,Inc.Oracle RAC的数据源配置的数据源配置url 采用oracle tnsname配置的方式:配置WebLogic多池数据源方式:Multipool(WebLogic 8.1)多数据源(WebLogic 9.2)20 2007 BEA Systems,Inc.Sun HotSpotJConsole21 JConsole is a JMX-compliant GUI tool that connects to a running JVM,which is started with the management agent.JDK 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.2007 BEA Systems,Inc.22 JConsoleThe management agent in the JVM should be 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 2007 BEA Systems,Inc.23 Jconsole Remote MonitoringTo enable the JMX agent(JConsole)for remote 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 2007 BEA Systems,Inc.SUN HotSpotjvisualvmJava 6 里自带的一个监控jvm运行状况的工具。%JAVA_HOME%/bin/jvisualvm.exe24 2007 BEA Systems,Inc.Oracle JRockit Mission ControlWindows平台下,性能较优的JVM。提供的很好的监控工具,用于监控WebLogic的运行状况。针对不同的JDK 版本,都有对应的安装程序。可以从Oracle网站免费下载 http:/ 2007 BEA Systems,Inc.26 BEA JRockit Mission ControlBEA JRockit ships with BEA JRockit Mission Control.These are a group of independent management and monitoring tools.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 instrumentation with the lowest possible impact on the system.2007 BEA Systems,Inc.27 Management ServerThe 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=2007 BEA Systems,Inc.网页数据分析工具HttpWatchHttpWatch是强大的网页数据分析工具。集成在Internet Explorer工具栏。网页摘要。Cookies管理。缓存管理。消息头发送/接受。字符查询。POST 数据。报告输出。28
展开阅读全文
相关资源
相关搜索

最新文档


当前位置:首页 > 商业管理 > 营销创新


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!