WebLogic调优与监控(包含weblogic11g)要点.ppt

WebLogic调优与监控(包含weblogic11g)要点

? 2007 BEA Systems, Inc. ? 2007 BEA Systems, Inc. * 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的序列号全都开放了,没有必要再去进行破解了。 * WebLogic 主要使用 的JVM SUN HotSpot JVM BEA JRockit JVM 不同的JVM,其可设置的参数和监控的工具将是不同,后面将分别介绍这两种JVM的设置。 在Intel架构和windows平台上,建议使用JRockit JVM,这样可以带来更优的性能。 * WebLogic实例主要设置内容 启动参数设置 主要是设置GC参数 线程设置 主要是设置线程的数量 数据库连接池的设置 主要是设置连接池的初始容量和最大容量 * WebLogic 8.1 启动文件 %DOMAIN_HOME%/startWebLogic.cmd 设置实例的运行模式:开发模式/生产模式 设置JAVA_HOME 设置JAVA_VM:client/server/jrockit 设置MEM_ARGS %WL_HOME%\common\bin\commEnv.cmd 设置所有实例都统一使用的参数 * WebLogic 9.2 启动文件 %WL_HOME%\common\bin\commEnv.cmd 设置所有实例统一的运行参数 %DOMAIN_HOME%\bin\setDomainEnv.cmd 设置本实例的运行参数 %DOMAIN_HOME%\bin\startWebLogic.cmd 运行启动脚本 * * 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 * 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 -Xms[n] -Xmx[n] Size of the generations in the heap -XX:NewSize=n -XX:MaxNewSize=n -XX:NewRatio=n * …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 * JRockit Benefits Weblogi

文档评论(0)

1亿VIP精品文档

相关文档