WebLogic调优与监控.ppt_第1页
WebLogic调优与监控.ppt_第2页
WebLogic调优与监控.ppt_第3页
WebLogic调优与监控.ppt_第4页
WebLogic调优与监控.ppt_第5页
免费预览已结束,剩余23页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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,weblogic 主要使用 的jvm,sun hotspot jvm bea jrockit jvm 不同的jvm,其可设置的参数和监控的工具将是不同,后面将分别介绍这两种jvm的设置。 在intel架构和windows平台上,建议使用jrockit jvm,这样可以带来更优的性能。,3,weblogic实例主要设置内容,启动参数设置 主要是设置gc参数 线程设置 主要是设置线程的数量 数据库连接池的设置 主要是设置连接池的初始容量和最大容量,4,weblogic 8.1 启动文件,%domain_home%/startweblogic.cmd 设置实例的运行模式:开发模式/生产模式 设置java_home 设置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 (new) generation tenured (old) generation permanent (perm) generation young generation is further divided into: eden survivor 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 parameters available while tuning the garbage collection manually: size of the the overall heap -xmsn -xmxn size 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:survivorratio=n the size of the permanent generation -xx:permsize=n -xx:maxpermsize=n the threshold for promotion from the young generation to the old generation -xx:maxtenuringthreshold=n tuning 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,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 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 into two generations young generation (nursery) old generation in 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 实例的线程设置.,线程管理与weblogic 8.1存在很大的不同,由weblogic自动去管理。 默认情况下,weblogic提供的线程数量较小,并且在管理控制台上没有修改线程数量的链接。,16,.weblogic 9.2 实例的线程设置,可以通过手动修改config.xml文件,使用与weblogic 8.1相同的线程设置风格。 主要是在中添加以下代码:,17,数据连接池、数据源的主要配置,连接池的初始容量、最大容量、增长容量。 是否启用连接泄露配置。 是否测试数据库连接。 数据库连接的时间设置。,18,oracle rac 集群,oracle rac(oracle real application cluster),oracle数据库的集群。 基于共享存储的数据库,具有多个数据库运行实例。 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 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 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 access, set this system property when you start weblogic server or jvm : dcom.sun.management.jmxremote.port=portno connecting remotely through jconsole is the recommended way when monitoring or managing production environments.,tuning sun hotspot jvm-12,sun hotspotjvisualvm,java 6 里自带的一个监控jvm运行状况的工具。 %java_home%/bin/jvisualvm.exe,24,oracle jrockit mission control,windows平台下,性能较优的jvm。 提供的很好的监控工具,用于监控weblogic的运行状况。 针对不同的jdk 版本,都有对应的安装程序。 可以从oracle网站免费下载 /technetwork/middleware/jrockit/overview/index.html,25,26,bea jrockit mission control,bea jrockit ships with bea jrockit mission control. these are a group of independent management and monitoring tools. bea jrockit management console jmx complaint monitoring tool bea jrockit runtime analyzer records and helps you analyze jvm and running application bea jrockit memory leak detector detects and finds the cause for memory leaks the main focus of jrockit mission control is to do the necessary instrumentation 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 s

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论