WebSphere培訓(xùn)-日常維護(hù)資料_第1頁(yè)
WebSphere培訓(xùn)-日常維護(hù)資料_第2頁(yè)
WebSphere培訓(xùn)-日常維護(hù)資料_第3頁(yè)
WebSphere培訓(xùn)-日常維護(hù)資料_第4頁(yè)
WebSphere培訓(xùn)-日常維護(hù)資料_第5頁(yè)
已閱讀5頁(yè),還剩41頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、WebSphere Application Server日常維護(hù)常用命令及配置常用命令./startServer.sh./stopServer.sh./startNode.sh./stopNode.sh./startManager.sh./stopManager.sh./serverStatus.sh./versionInfo.sh啟停WAS順序啟動(dòng)DmgrNodeAppServer/Cluster停止AppServer/ClusterNodeDmgr備份WAS配置./backupConfig.sh./restoreConfig.sh慎用,因?yàn)闀?huì)停止WAS服務(wù)器訪問Dmgr控制臺(tái)http:/:

2、/ibm/consolehttp:/:/admin服務(wù)器的管理Messaging EngineEmbedded HTTP ServerWebContainerEJBContainerXML Configuration FilesApplication ServerAdmin consoleC: wsadmin基于瀏覽器的管理控制臺(tái)wsadmin命令行管理客戶端RMI/IIOPHTTP(S)Admin MBeansWeb Services EngineAdmin. ServiceSOAP/HTTP修改WAS的監(jiān)聽端口更改應(yīng)用的訪問端口缺省為9080實(shí)際工作中,如果沒有Web服務(wù)器,有的環(huán)境會(huì)希望

3、把應(yīng)用訪問端口變成80登陸WAS管理控制臺(tái),選擇 左邊菜單 服務(wù)器 應(yīng)用服務(wù)器,點(diǎn)擊 server1,選擇“端口”,點(diǎn)擊“WC_defaulthost”更改WAS監(jiān)聽端口更改Dmgr控制臺(tái)端口缺省為9060登陸WAS管理控制臺(tái)選擇 左邊菜單 系統(tǒng)管理 Deployment Manager ,選擇右側(cè)的“端口”點(diǎn)擊“WC_adminhost忘記Dmgr密碼兩種方式disable security:1. 通過“wsadmin.bat -conntype NONE” 以本地方式運(yùn)行腳本 “securityoff” 和 “$AdminConfig save” (注意:要通過本地方式運(yùn)行 -connTy

4、pe none ,否則需要服務(wù)器處于運(yùn)行狀態(tài)并且wsadmin也需要 用戶名和密碼)。2. 修改 configcells 下的security.xml, 將第二行中的enabled=“True” 改為enabled=“false”。Disable Globle Security 后,重新啟動(dòng)服務(wù)器,即可直接登陸管理控制臺(tái)。如果需要可以重新 enable security并設(shè)置新密碼。控制臺(tái)首選項(xiàng)缺省情況下,每次在Dmgr上做的修改是不會(huì)立刻同步到受管理的WAS Server上的,需要手動(dòng)同步如果不同步是不會(huì)生效的控制臺(tái)首選項(xiàng)可以通過更改控制臺(tái)首選項(xiàng)來及時(shí)的同步修改部署應(yīng)用的注意點(diǎn)注意拿到的維護(hù)

5、文檔中是否有對(duì)該應(yīng)用重新部署的特殊說明。特別是關(guān)于類加載順序的配置。更改應(yīng)用的會(huì)話(Session)超時(shí)不建議修改WAS全局的會(huì)話超時(shí)建議修改根據(jù)具體情況修改每個(gè)應(yīng)用的會(huì)話超時(shí)常規(guī)檢查文件系統(tǒng)狀態(tài)檢查文件系統(tǒng)檢查http/usr/IBMHttpServer/usr/IBMHttpServer/logs/*was/usr/WebSphere/usr/WebSphere/DeploymentManager/usr/WebSphere/Profiles/AppSvr01/logs/server1/*/usr/WebSphere/Profiles/DMgr01/logs/dmgr/*Use “df”

6、command to display information about total space and available space on a file system. If file system usage is over 90%, check the log files in that file system. Following is the checklist for some file systems that will grow over time: 性能監(jiān)控Performance Monitoring Command Functioniostat Displays util

7、ization data for:Terminals CPU Diskslsdev Displays devices in the system and their characteristics lspsDisplays the characteristics of paging spaces netstat Displays a wide variety of configuration information and statistics on communications activity, such as:Current status of the mbuf pool. Routin

8、g tables Cumulative statistics on network activitynoDisplays (or changes) the values of network options, such as:Default send and receive socket buffer sizes Maximum total amount of memory used in mbuf and cluster poolspsDisplays statistics and status information about the processes in the system, s

9、uch as:Process ID I/O activity CPU utilizationsvmon Reports on the status of memory at system, process, and segment levels topas Reports selected local system statistics vmstat Displays VMM data, such as:Number of processes that are dispatchable or waiting frame free-list size fault activity CPU uti

10、lizationPerformance Monitoring CPU utilization The vmstat Command (CPU) vmstat -f -i -s PhysicalVolume . Interval Count To check if the CPU is the bottleneck, consider the four cpu columns. If vmstat shows the CPU usage over 90% percent busy for an extended period, there is a good chance that we hav

11、e some problems with our system, we should find out and fixed it. #vmstat 2 10kthr memory page faults cpu r b avm fre re pi po fr sr cy in sy cs us sy id wa 0 0 130322 405844 0 0 0 0 1 0 147 148 165 6 1 93 0 0 1 130322 405843 0 0 0 0 0 0 410 282 62 0 0 99 0 0 1 130322 405843 0 0 0 0 0 0 408 92 54 0

12、0 99 0 0 1 130322 405843 0 0 0 0 0 0 410 99 57 0 0 99 0 0 1 130322 405843 0 0 0 0 0 0 410 91 53 0 0 99 0 0 1 130322 405843 0 0 0 0 0 0 409 97 56 0 0 99 0 0 1 130322 405843 0 0 0 0 0 0 409 98 53 0 0 99 0 0 1 130322 405843 0 0 0 0 0 0 408 92 51 0 0 99 0 0 1 130322 405843 0 0 0 0 0 0 409 251 70 1 0 99

13、0For example To display 10 summaries at 2-second intervals, enter:vmstat 2 10CPU utilization Virtual memory management svmon -G # svmon -G size inuse free pin virtualmemory 524288 395494 128794 78944 126793pg space 262144 1525 work pers clnt lpagepin 78944 0 0 0in use 126093 163 269238 0Disk I/O For

14、 database and general file servers the disk I/O is one of the critical performance issues. Since AIX disks are typically SCSI-disks the operations that are meaningful to measure are reads and writes. # iostat 5 tty: tin tout avg-cpu: % user % sys % idle % iowait 0.0 83.2 0.6 0.2 99.2 0.0Disks: % tm_

15、act Kbps tps Kb_read Kb_wrtnhdisk0 0.0 0.0 0.0 0 0hdisk1 0.0 0.0 0.0 0 0cd0 0.0 0.0 0.0 0 0Network I/OIn typical client-server environments the network traffic is quite critical in performance problems. In AIX environments only the usage of the system itself can be measured by default. There are oth

16、er methods for measuring the total network traffic. netstat I en0 5Tivoli Performance Viewer顯示從本地或遠(yuǎn)程應(yīng)用服務(wù)器收集的PMI (Performance Monitoring Infrastructure )數(shù)據(jù) Summary reports(摘要報(bào)告) show key areas of contentionGraphical/tabular views of raw PMI dataOptionally save collected PMI data to logs通過顧問程序提供配置建議Tu

17、ning advice formulated from gathered PMI and configuration data與WebSphere管理控制臺(tái)集成26TPV對(duì)性能的影響Varies depending on counterAll data collection impacts performance in some wayBasic setting has overhead of 2%Basic setting is enabled be defaultExtended setting has overhead of 3%All setting has overhead of 6

18、%Collection of JVMPI data adds additional overheadCollecting just GC and Thread data adds 2%Collecting all JVMPI data adds 20-25%27TPV 顧問程序28Tivoli Performance Viewer 設(shè)置29TPV 摘要報(bào)告實(shí)時(shí)監(jiān)控WAS的性能和健康情況30TPV表格方式查看性能模塊可以鉆取到你感興趣的細(xì)節(jié)31TPV圖形方式查看性能模塊32錯(cuò)誤檢查Check Error Messages http/usr/IBMHttpServer/usr/IBMHttpSer

19、ver/logs/access_log/usr/IBMHttpServer/logs/error_log/usr/IBMHttpServer/logs/ssl-access_log/usr/IBMHttpServer/logs/ssl-error_logwas/usr/WebSphere/usr/WebSphere/Profiles/AppSrvr01/logs/server1/SystemOut.log/usr/WebSphere/Profiles/AppSrvr01logs/server1/SystemErr.log/usr/WebSphere/Profiles/AppSrvr01/log

20、s/server1/native_stderr.log/usr/WebSphere/Profiles/Dmgr01/logs/dmgr/SystemOut.log/usr/WebSphere/Profiles/Dmgr01/logs/dmgr/SystemErr.log/usr/WebSphere/Profiles/Dmgr01/logs/dmgr/native_stderr.log系統(tǒng)和進(jìn)程健康檢查WAS檢查登陸管理控制臺(tái),檢查各個(gè)節(jié)點(diǎn)是否正常運(yùn)行http:/localhost:9060/ibm/console檢查Java進(jìn)程是否正常運(yùn)行ps -ef |grep java故障排查WebSph

21、ere Application Server & HTTP Server Web服務(wù)器檢查ps -ef | grep httpd# ps -ef | grep httpd nobody 188560 266384 0 Sep 04 - 0:00 /usr/IBMHttpServer/bin/httpd -d /usr/IBMHttpServer-f /usr/IBMHttpServer/conf/admin.conf root 266384 1 0 Sep 04 - 0:03 /usr/IBMHttpServer/bin/httpd -d /usr/IBMHttpServer-f /usr/I

22、BMHttpServer/conf/admin.conf nobody 278780 839856 0 Sep 09 - 1:13 /usr/IBMHttpServer/bin/httpd -d /usr/IBMHttpServer root 352482 266384 0 Sep 04 - 0:00 /usr/IBMHttpServer/bin/httpd -d /usr/IBMHttpServer-f /usr/IBMHttpServer/conf/admin.conf nobody 680028 839856 0 15:37:10 - 1:08 /usr/IBMHttpServer/bi

23、n/httpd -d /usr/IBMHttpServer nobody 696438 839856 0 15:26:29 - 1:12 /usr/IBMHttpServer/bin/httpd -d /usr/IBMHttpServer nobody 753796 839856 0 Sep 09 - 1:11 /usr/IBMHttpServer/bin/httpd -d /usr/IBMHttpServer nobody 798878 839856 0 Sep 09 - 1:12 /usr/IBMHttpServer/bin/httpd -d /usr/IBMHttpServerWAS檢查

24、ps ef |grep javaroot 552982 1 0 Sep 06 - 73:40 /usr/WebSphere/AppServer/java/bin/java -Xbootclasspath/p:/usr/WebSphere/AppServer/java/jre/lib/ext/ibmorb.jar:/usr/WebSphere/AppServer/java/jre/lib/ext/ibmext.jar -Dwas.status.socket=33987 -classpath /usr/WebSphere/AppServer/properties:/usr/WebSphere/Ap

25、pServer/properties:/usr/WebSphere/AppServer/lib/bootstrap.jar:/usr/WebSphere/AppServer/lib/j2ee.jar:/usr/WebSphere/AppServer/lib/lmproxy.jar:/usr/WebSphere/AppServer/lib/urlprotocols.jar -verbose:gc -Xms448m -Xmx512m -Dws.ext.dirs=/usr/WebSphere/AppServer/java/lib:/usr/WebSphere/AppServer/classes:/u

26、sr/WebSphere/AppServer/classes:/usr/WebSphere/AppServer/lib:/usr/WebSphere/AppServer/lib/ext:/usr/WebSphere/AppServer/web/help:/usr/WebSphere/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime -Dserver.root=/usr/WebSphere/AppServer -Ddb2j.system.home=/usr/WebSphere/AppServer/cloudscap

27、eCommon -Duser.install.root=/usr/WebSphere/AppServer -Dcom.ibm.itp.location=/usr/WebSphere/AppServer/bin -Dwas.install.root=/usr/WebSphere/AppServer -Dfile.encoding=GB2312 -Dclient.encoding.override=GB2312 -Ddefault.client.encoding=GB2312 -Djava.security.auth.login.config=/usr/WebSphere/AppServer/pr

28、operties/wsjaas.conf -Djava.security.policy=/usr/WebSphere/AppServer/properties/server.policy com.ibm.ws.bootstrap.WSLauncher com.ibm.ws.runtime.WsServer /usr/WebSphere/AppServer/config testserverNetwork was server1 root 561198 1 0 Sep 06 - 6:42 /usr/WebSphere/AppServer/java/bin/java -Xms50m -Dwas.s

29、tatus.socket=33983 -Xbootclasspath/p:/usr/WebSphere/AppServer/java/jre/lib/ext/ibmorb.jar:/usr/WebSphere/AppServer/java/jre/lib/ext/ibmext.jar -classpath /usr/WebSphere/AppServer/properties:/usr/WebSphere/AppServer/properties:/usr/WebSphere/AppServer/lib/bootstrap.jar:/usr/WebSphere/AppServer/lib/j2

30、ee.jar:/usr/WebSphere/AppServer/lib/lmproxy.jar:/usr/WebSphere/AppServer/lib/urlprotocols.jar -Xmx256m -Dws.ext.dirs=/usr/WebSphere/AppServer/java/lib:/usr/WebSphere/AppServer/classes:/usr/WebSphere/AppServer/classes:/usr/WebSphere/AppServer/lib:/usr/WebSphere/AppServer/lib/ext:/usr/WebSphere/AppSer

31、ver/web/help:/usr/WebSphere/AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime -Dserver.root=/usr/WebSphere/AppServer -Ddb2j.system.home=/usr/WebSphere/AppServer/cloudscapeCommon -Duser.install.root=/usr/WebSphere/AppServer -Dcom.ibm.itp.location=/usr/WebSphere/AppServer/bin -Dwas.install.root=/usr/WebSphere/AppSe

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論