




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1
WebLogicServer性能監控與調優
Overview-1WebLogic的版本WebLogicServer8.1(Java1.4、J2EE1.3)WebLogicServer9.x(Java5、J2EE1.4)WebLogicServer10.0(Java5、JavaEE5)WebLogicServer10.3(Java6、JavaEE5)WebLogicServer11gR1(10.3.x)(Java6、JavaEE5)軟件授權:自從oracle收購了bea之后,WebLogic的序列號全都開放了,沒有必要再去進行破解了。2
WebLogic主要使用
的JVMSUNHotSpotJVMBEAJRockitJVM不同的JVM,其可設置的參數和監控的工具將是不同,后面將分別介紹這兩種JVM的設置。在Intel架構和windows平臺上,建議使用JRockitJVM,這樣可以帶來更優的性能。3
WebLogic實例主要設置內容啟動參數設置主要是設置GC參數線程設置主要是設置線程的數量數據庫連接池的設置主要是設置連接池的初始容量和最大容量4
WebLogic8.1啟動文件%DOMAIN_HOME%/startWebLogic.cmd設置實例的運行模式:開發模式/生產模式設置JAVA_HOME設置JAVA_VM:client/server/jrockit設置MEM_ARGS%WL_HOME%\common\bin\commEnv.cmd設置所有實例都統一使用的參數5
WebLogic9.2啟動文件%WL_HOME%\common\bin\commEnv.cmd設置所有實例統一的運行參數%DOMAIN_HOME%\bin\setDomainEnv.cmd設置本實例的運行參數%DOMAIN_HOME%\bin\startWebLogic.cmd運行啟動腳本6
7
SunHotSpotHeap分布Heapisdividedbroadlyintothreeareas:Young(New)generationTenured(Old)generationPermanent(Perm)generationYounggenerationisfurtherdividedinto:EdenSurvivorspaces(2)Xmx8
TuningGCManually…Newself-tuningfeatureisnotavailablewhiletuningJVMspriortoversion1.5andmanualtuningisrequired.Thefollowingarethecommontuningparametersavailablewhiletuningthegarbagecollectionmanually:Sizeofthetheoverallheap-Xms[n]-Xmx[n]Sizeofthegenerationsintheheap-XX:NewSize=n-XX:MaxNewSize=n-XX:NewRatio=n9
…TuningGCManuallyCommontuningparameters(continued)Thesizeofthesurvivorspacesintheyounggeneration-XX:SurvivorRatio=nThesizeofthepermanentgeneration-XX:PermSize=n-XX:MaxPermSize=nThethresholdforpromotionfromtheyounggenerationtotheoldgeneration-XX:MaxTenuringThreshold=nTuninginvolveseitheraseriesofexperimentswithaspecializedtool(or)goodjudgmenttodecidethatGCwasperformingwell.TuningSunHotSpotJVM-3810
JRockitBenefitsWeblogicJRockitJVMisdesignedforserver-sideapplications.Itemploysadaptiveoptimizationtosignificantlyimproveruntimeperformance.Ithasadaptivegarbagecollectionandheapmanagement.Itoffersfullsupportfor32and64bitJRockitonIntelEM64T/AMD64andcompatibles.JRockitalsosupportsSolaris/Sparcarchitecture.Itofferssupportforverylargeheapson64bitplatforms.JRockitMissionControltoolssuiteoffersbettermanagement,tuningandtroubleshooting.11
GenerationalHeap-JRockitInthetwo-generationalmodel,heapisdividedintotwogenerationsYounggeneration(Nursery)OldgenerationInasingle-spacedmodel,alltheobjectsareallocatedinasinglespaceontheheap.NurseryOldSpaceXnsXmxXmxWebLogic8.1實例的線程設置...線程的設置主要是在weblogic控制臺中完成12
.WebLogic8.1實例的線程設置..13
..WebLogic
8.1實例的線程設置.14
…WebLogic
8.1實例的線程設置15
WebLogic9.2實例的線程設置.線程管理與WebLogic8.1存在很大的不同,由WebLogic自動去管理。默認情況下,WebLogic提供的線程數量較小,并且在管理控制臺上沒有修改線程數量的鏈接。16
.WebLogic9.2實例的線程設置可以通過手動修改config.xml文件,使用與weblogic8.1相同的線程設置風格。主要是在<server>中添加以下代碼:17
數據連接池、數據源的主要配置連接池的初始容量、最大容量、增長容量。是否啟用連接泄露配置。是否測試數據庫連接。數據庫連接的時間設置。18
OracleRAC集群OracleRAC(OracleRealApplicationCluster),Oracle數據庫的集群。基于共享存儲的數據庫,具有多個數據庫運行實例。tnsnames.ora形式與常規模式不同。19
OracleRAC的數據源配置url采用oracletnsname配置的方式:配置WebLogic多池數據源方式:Multipool(WebLogic8.1)多數據源(WebLogic9.2)20
SunHotSpot-JConsole21
JConsoleisaJMX-compliantGUItoolthatconnectstoarunningJVM,whichisstartedwiththemanagementagent.JDK5.0includesthemonitoringandmanagementtool,JConsole.JConsoleallowsyoutoseeinsidetheJVMandtheapplicationwhileit'srunning.JConsoleprovidesrealtimeviewingoftheperformanceofapplicationsandshowstheirresourceconsumption.22
…JConsole…ThemanagementagentintheJVMshouldbestartedformonitoring.ItcanonlyconnecttooneJVMatanytime.TouseJConsoleforconnectingtoaJVMlocally,WebLogicServershouldbestartedwiththeoptiontoenablethemanagementagent.-Dcom.sun.management.jmxremote23
JconsoleRemoteMonitoringToenabletheJMXagent(JConsole)forremoteaccess,setthissystempropertywhenyoustartWebLogicServerorJVM:Dcom.sun.management.jmxremote.port=portNoConnectingremotelythroughJConsoleistherecommendedwaywhenmonitoringormanagingproductionenvironments.TuningSunHotSpotJVM-12SUNHotSpot-jvisualvmJava6里自帶的一個監控jvm運行狀況的工具。%JAVA_HOME%/bin/jvisualvm.exe24
OracleJRockitMissionControlWindows平臺下,性能較優的JVM。提供的很好的監控工具,用于監控WebLogic的運行狀況。針對不同的JDK版本,都有對應的安裝程序。可以從Oracle網站免費下載/technetwork/middleware/jrockit/overview/index.html25
26
BEAJRockitMissionControlBEAJRockitshipswithBEAJRockitMissionControl.Theseareagroupofindependentmanagementandmonitoringtools.BEAJRockitManagementConsoleJMXComplaintmonitoringtoolBEAJRockitRuntimeAnalyzerRecordsandhelpsyouanalyzeJVMandrunningapplicationBEAJRockitMemoryLeakDetectorDetectsandfindsthecauseformemoryleaksThemainfocusofJRockitMissionControlistodothenecessaryinstrumentationwiththelowestpossibleimpactonthesystem.27
ManagementServerThemanagementserverintheJRockitVMisdisabledbydefault.Toenablethemanagementserver,addthefollowingcommand-lineargumenttotheJVMstartscript:java-Xmanagement…weblogic.ServerThedefaultportthatthemanagementserverus
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 東川區輕鋼別墅合同標準文本
- 修路材料購買合同樣本
- 健身房轉讓全部合同樣本
- 個人買賣瓷器合同標準文本
- 書寫創業合同樣本
- 買斷制合同樣本
- 專利研發技術轉讓合同標準文本
- 合同履約成本的明細費用項目
- 2024年中國石化河北石家莊石油分公司招聘筆試真題
- 2024年紹興市越城區衛健系統事業單位招聘筆試真題
- 【復習資料】01180電視采訪(復習提分要點)
- 2023年國家工信部信息中心事業單位招聘筆試參考題庫(共500題)答案詳解版
- 合理自我分析報告RSA
- GB/T 19670-2023機械安全防止意外啟動
- 財產保險實務-教案項目1、2走進財產保險、企業財產保險
- 外科學教學課件:結、直腸與肛管疾病
- 2022年廣東高考政治真題及答案
- 化學動力學基礎(二)課件
- IATF16949-過程審核檢查表-(含審核記錄)-
- 陜西省二級以上醫院信息
- 實驗室安全檢查記錄表
評論
0/150
提交評論