书签 分享 收藏 举报 版权申诉 / 47
上传文档赚钱

类型WebSphere培训-日常维护课件.ppt

  • 上传人(卖家):晟晟文业
  • 文档编号:4027348
  • 上传时间:2022-11-05
  • 格式:PPT
  • 页数:47
  • 大小:1.82MB
  • 【下载声明】
    1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
    2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
    3. 本页资料《WebSphere培训-日常维护课件.ppt》由用户(晟晟文业)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
    4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
    5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
    配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    WebSphere 培训 日常 维护 课件
    资源描述:

    1、WebSphere Application Server日常维护常用命令及配置常用命令./startServer.sh./stopServer.sh./startNode.sh./stopNode.sh./startManager.sh./stopManager.sh./serverStatus.sh./versionInfo.sh启停WAS顺序 启动 Dmgr Node AppServer/Cluster 停止 AppServer/Cluster Node Dmgr备份WAS配置./backupConfig.sh./restoreConfig.sh 慎用,因为会停止WAS服务器访问Dmgr控

    2、制台 http:/:/ibm/console http:/:/admin服务器的管理Messaging EngineEmbedded HTTP ServerWebContainerEJBContainerXML Configuration FilesApplication ServerAdmin consoleC:wsadmin基于浏览器的管理控制台基于浏览器的管理控制台wsadmin命令行管理客户端命令行管理客户端RMI/IIOPHTTP(S)Admin MBeansWeb Services EngineAdmin.ServiceSOAP/HTTP修改WAS的监听端口更改应用的访问端口 缺省

    3、为9080 实际工作中,如果没有Web服务器,有的环境会希望把应用访问端口变成80 登陆WAS管理控制台,选择 左边菜单 服务器 应用服务器,点击 server1,选择“端口”,点击“WC_defaulthost”更改WAS监听端口 更改Dmgr控制台端口 缺省为9060 登陆WAS管理控制台 选择 左边菜单 系统管理 Deployment Manager,选择右侧的“端口”点击“WC_adminhost忘记Dmgr密码 两种方式disable security:1.通过“wsadmin.bat-conntype NONE”以本地方式运行脚本“securityoff”和“$AdminConfi

    4、g save”(注意:要通过本地方式运行-connType none,否则需要服务器处于运行状态并且wsadmin也需要 用户名和密码)。2.修改 configcells 下的security.xml,将第二行中的enabled=“True”改为enabled=“false”。Disable Globle Security 后,重新启动服务器,即可直接登陆管理控制台。如果需要可以重新 enable security并设置新密码。控制台首选项 缺省情况下,每次在Dmgr上做的修改是不会立刻同步到受管理的WAS Server上的,需要手动同步 如果不同步是不会生效的控制台首选项 可以通过更改控制台

    5、首选项来及时的同步修改部署应用的注意点 注意拿到的维护文档中是否有对该应用重新部署的特殊说明。特别是关于类加载顺序的配置。更改应用的会话(Session)超时 不建议修改WAS全局的会话超时 建议修改根据具体情况修改每个应用的会话超时常规检查文件系统状态检查文件系统检查http/usr/IBMHttpServer/usr/IBMHttpServer/logs/*was/usr/WebSphere/usr/WebSphere/DeploymentManager/usr/WebSphere/Profiles/AppSvr01/logs/server1/*/usr/WebSphere/Profile

    6、s/DMgr01/logs/dmgr/*Use“df”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:性能监控Performance Monitoring Command Funct

    7、ioniostat Displays utilization 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

    8、 the mbuf pool.Routing 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 processe

    9、s in the system,such 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 Page-frame free-list size Pag

    10、e-fault activity CPU utilizationPerformance 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 ch

    11、ance that we have 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

    12、0 408 92 54 0 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

    13、251 70 1 0 99 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 0Dis

    14、k I/O For 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_act K

    15、bps 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/O In 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 other met

    16、hods for measuring the total network stat I en0 5Tivoli Performance Viewer 显示从本地或远程应用服务器收集的PMI(Performance Monitoring Infrastructure)数据 Summary reports(摘要报告)show key areas of contention Graphical/tabular views of raw PMI data Optionally save collected PMI data to logs 通过顾问程序提供配置建议 Tuning advice form

    17、ulated from gathered PMI and configuration data 与WebSphere管理控制台集成26TPVTPV对性能的影响对性能的影响 Varies depending on counter All data collection impacts performance in some way Basic setting has overhead of 2%Basic setting is enabled be default Extended setting has overhead of 3%All setting has overhead of 6%C

    18、ollection of JVMPI data adds additional overhead Collecting just GC and Thread data adds 2%Collecting all JVMPI data adds 20-25%27TPV-TPV-顾问程序顾问程序28Tivoli Performance Viewer-Tivoli Performance Viewer-设置设置29TPV-TPV-摘要报告摘要报告 实时监控WAS的性能和健康情况30TPV-表格方式查看性能模块 可以钻取到你感兴趣的细节31TPV-图形方式查看性能模块32错误检查Check Error

    19、 Messages http/usr/IBMHttpServer/usr/IBMHttpServer/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/Sys

    20、temErr.log/usr/WebSphere/Profiles/AppSrvr01/logs/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系统和进程健康检查WAS检查 登陆管理控制台,检查各个节点是否正常运行 http:/localhost:9060/ibm

    21、/console检查Java进程是否正常运行 ps -ef|grep java故障排查WebSphere Application Server&HTTP Server Web服务器检查 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/ht

    22、tpd-d/usr/IBMHttpServer-f/usr/IBMHttpServer/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/

    23、usr/IBMHttpServer/bin/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/IBMHttpServe

    24、rWAS检查 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:/usr/W

    26、ebSphere/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/cloudscapeCommo

    27、n-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/properties/wsja

    28、as.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.status.socket=33983-

    29、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/j2ee.jar:/usr/WebSphere/

    30、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/AppServer/web/help:/usr/WebSph

    31、ere/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/AppS

    32、erver-Djava.security.auth.login.config=/usr/WebSphere/AppServer/properties/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 nodeagent管理控制台检查 登陆管理控制台,检查各

    33、个节点是否正常运行 http:/localhost:9060/ibm/consoleTrouble Shooting过程应用服务器检查检查项目检查项目具体检查步骤具体检查步骤检查日志文件中的错误信息,根据具体情况清除不必要的日志文件建立并检查日志文件的清理机制,例如使用crontab。日志文件包括WAS的日志以及运行在WAS之上的应用程序的日志。检查CPU使用率检查在访问量高峰时的CPU使用率,并作记录,使用topas命令,或使用以下命令根据进程对CPU的使用率排序ps vg|sort+10n检查WebSphere应用服务器相关的文件系统的使用状况对于AIX操作系统检查路径/usr/WebSp

    34、here/AppServer对应的文件系统的剩余空间,使用增长幅度检查WebSphere应用服务器的配置文件和配置参数应用服务器JVM命令行参数数据库连接池配置参数应用服务器中Servlet和JSP的配置参数评估以上参数是否需要调整应用服务器检查检查项目检查项目具体检查步骤具体检查步骤检查数据库连接池的使用状况使用Tivoli Performance Viewer资源分析器监测数据库连接池的以下状态值numWaiters:等待一个连接的线程数poolSize:连接池的大小avgWaitTime:客户机等待被授权连接的平均时间avgTimeHeld:每个连接的平均使用时间记录每天的峰值和发生时间,同时使用数据库管理和监测工具观察数据库运行状况WebSphere应用服务器最新补丁的信息在IBM产品支持网站中下载补丁的修正内容信息,评估安装补丁的必要性,并提出建议检查WebSphere的日志文件大小/usr/WebSphere/Profiles/AppSrv01/logs目录下文件大小,定期备份删除47 以上有不当之处,请大家给与批评指正,以上有不当之处,请大家给与批评指正,谢谢大家!谢谢大家!

    展开阅读全文
    提示  163文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
    关于本文
    本文标题:WebSphere培训-日常维护课件.ppt
    链接地址:https://www.163wenku.com/p-4027348.html

    Copyright@ 2017-2037 Www.163WenKu.Com  网站版权所有  |  资源地图   
    IPC备案号:蜀ICP备2021032737号  | 川公网安备 51099002000191号


    侵权投诉QQ:3464097650  资料上传QQ:3464097650
       


    【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。

    163文库