




版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1
WebLogicServer性能監(jiān)控與調(diào)優(yōu)
Overview-1WebLogic的版本W(wǎng)ebLogicServer8.1(Java1.4、J2EE1.3)WebLogicServer9.x(Java5、J2EE1.4)WebLogicServer10.0(Java5、JavaEE5)WebLogicServer10.3(Java6、JavaEE5)WebLogicServer11gR1(10.3.x)(Java6、JavaEE5)軟件授權(quán):自從oracle收購(gòu)了bea之后,WebLogic的序列號(hào)全都開(kāi)放了,沒(méi)有必要再去進(jìn)行破解了。2
WebLogic主要使用
的JVMSUNHotSpotJVMBEAJRockitJVM不同的JVM,其可設(shè)置的參數(shù)和監(jiān)控的工具將是不同,后面將分別介紹這兩種JVM的設(shè)置。在Intel架構(gòu)和windows平臺(tái)上,建議使用JRockitJVM,這樣可以帶來(lái)更優(yōu)的性能。3
WebLogic實(shí)例主要設(shè)置內(nèi)容啟動(dòng)參數(shù)設(shè)置主要是設(shè)置GC參數(shù)線(xiàn)程設(shè)置主要是設(shè)置線(xiàn)程的數(shù)量數(shù)據(jù)庫(kù)連接池的設(shè)置主要是設(shè)置連接池的初始容量和最大容量4
WebLogic8.1啟動(dòng)文件%DOMAIN_HOME%/startWebLogic.cmd設(shè)置實(shí)例的運(yùn)行模式:開(kāi)發(fā)模式/生產(chǎn)模式設(shè)置JAVA_HOME設(shè)置JAVA_VM:client/server/jrockit設(shè)置MEM_ARGS%WL_HOME%\common\bin\commEnv.cmd設(shè)置所有實(shí)例都統(tǒng)一使用的參數(shù)5
WebLogic9.2啟動(dòng)文件%WL_HOME%\common\bin\commEnv.cmd設(shè)置所有實(shí)例統(tǒng)一的運(yùn)行參數(shù)%DOMAIN_HOME%\bin\setDomainEnv.cmd設(shè)置本實(shí)例的運(yùn)行參數(shù)%DOMAIN_HOME%\bin\startWebLogic.cmd運(yùn)行啟動(dòng)腳本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實(shí)例的線(xiàn)程設(shè)置...線(xiàn)程的設(shè)置主要是在weblogic控制臺(tái)中完成12
.WebLogic8.1實(shí)例的線(xiàn)程設(shè)置..13
..WebLogic
8.1實(shí)例的線(xiàn)程設(shè)置.14
…WebLogic
8.1實(shí)例的線(xiàn)程設(shè)置15
WebLogic9.2實(shí)例的線(xiàn)程設(shè)置.線(xiàn)程管理與WebLogic8.1存在很大的不同,由WebLogic自動(dòng)去管理。默認(rèn)情況下,WebLogic提供的線(xiàn)程數(shù)量較小,并且在管理控制臺(tái)上沒(méi)有修改線(xiàn)程數(shù)量的鏈接。16
.WebLogic9.2實(shí)例的線(xiàn)程設(shè)置可以通過(guò)手動(dòng)修改config.xml文件,使用與weblogic8.1相同的線(xiàn)程設(shè)置風(fēng)格。主要是在<server>中添加以下代碼:17
數(shù)據(jù)連接池、數(shù)據(jù)源的主要配置連接池的初始容量、最大容量、增長(zhǎng)容量。是否啟用連接泄露配置。是否測(cè)試數(shù)據(jù)庫(kù)連接。數(shù)據(jù)庫(kù)連接的時(shí)間設(shè)置。18
OracleRAC集群OracleRAC(OracleRealApplicationCluster),Oracle數(shù)據(jù)庫(kù)的集群?;诠蚕泶鎯?chǔ)的數(shù)據(jù)庫(kù),具有多個(gè)數(shù)據(jù)庫(kù)運(yùn)行實(shí)例。tnsnames.ora形式與常規(guī)模式不同。19
OracleRAC的數(shù)據(jù)源配置url采用oracletnsname配置的方式:配置WebLogic多池?cái)?shù)據(jù)源方式:Multipool(WebLogic8.1)多數(shù)據(jù)源(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里自帶的一個(gè)監(jiān)控jvm運(yùn)行狀況的工具。%JAVA_HOME%/bin/jvisualvm.exe24
OracleJRockitMissionControlWindows平臺(tái)下,性能較優(yōu)的JVM。提供的很好的監(jiān)控工具,用于監(jiān)控WebLogic的運(yùn)行狀況。針對(duì)不同的JDK版本,都有對(duì)應(yīng)的安裝程序??梢詮腛racle網(wǎng)站免費(fèi)下載/technetwork/middleware/jrockit/overview/index.html25
26
BEAJRockitMissionControlBEAJRockitshipswithBEAJRockitMissionControl.Theseareagroupofindependentmanagementandmonitoringtools.BEAJRockitManagementConsoleJMXComplaintmonitoringtoolBEAJRockitRuntimeAnalyzerRecordsandhelpsyouanalyzeJVMandrunningapplicationBEAJRockitMemoryLeakDetectorDetectsandfindsthecauseformemoryleaksThemainfocusofJRockitMissionControlistodothenecessaryinstrumentationwiththelowestpossibleimpactonthesystem.27
ManagementServerThemanagementserverintheJRockitVMisdisabledbydefault.Toenablethemanagementserver,addthefollowingcommand-lineargumenttotheJVMstartscript:java-Xmanagement…weblogic.ServerThedefaultportthatthemanagementserverus
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024助理廣告師考試思維導(dǎo)圖試題及答案
- 棉花纖維的分類(lèi)及特性試題及答案
- 2024年紡織品設(shè)計(jì)師的作品展示試題及答案
- 婚禮伴娘測(cè)試題及答案
- 精神中心測(cè)試題及答案
- 村警考試題及答案
- 各類(lèi)題型商業(yè)美術(shù)設(shè)計(jì)師考試試題及答案
- 衛(wèi)生打掃課件
- 云南高三理科試題及答案
- 多層次復(fù)習(xí)的國(guó)際商業(yè)美術(shù)設(shè)計(jì)師考試方法與試題及答案
- 數(shù)字貿(mào)易學(xué) 課件 第14章 數(shù)字營(yíng)銷(xiāo)
- 【數(shù)學(xué)】圓柱、圓錐、圓臺(tái)、球的表面積和體積(3課時(shí))課件-2023-2024學(xué)年高一下人教A版(2019)必修第二冊(cè)
- 中建項(xiàng)目現(xiàn)金流管理培訓(xùn)
- 神經(jīng)系統(tǒng)定位定性診斷
- fakra線(xiàn)束生產(chǎn)工藝
- 2024奧數(shù)競(jìng)賽6年級(jí)培訓(xùn)題-答案版
- 為成果而管理
- 美團(tuán)外賣(mài)BD培訓(xùn)總結(jié)
- 2024年國(guó)壽資本投資有限公司招聘筆試參考題庫(kù)含答案解析
- 部編版六年級(jí)語(yǔ)文下冊(cè)第五單元《口語(yǔ)交際:辯論》范例《電腦時(shí)代需要不需要練字》
- 集團(tuán)公司企業(yè)安全生產(chǎn)費(fèi)用集中管理及統(tǒng)籌使用管理辦法
評(píng)論
0/150
提交評(píng)論