




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
错误定位刘睿概要错误日志分类Console文件Symrecs文件CSMT.out文件Dump和Traceback文件CICSDumpTraceback文件可用的系统工具综合分析错误日志分类错误日志文件CONSOLE文件
CICSRegionStartup,Shutdown,TransactionError/Failure…SYMRECS文件
CICSErrorConditions,SymptomRecordsandStacktrace.TRACEBACK文件
stackinformationwhenanExceptionoccursinCICS.(IllegaladdressorIllegalinstruction)CSMT.out文件
TransactionErrorMessages,CommunicationErrors….env文件Dump文件XALog文件CICSTraceConsole文件Console.nnnnnn
位于/var/cics_regions/<regionname>/最大长度取决于RD:MaxConsoleSize。如果写信息到stderr的话,就会写入Console文件。信息分类:Information消息例:
ERZ010054I/02052006-07-2411:34:48.827332000CICSNT013264/0001:CICS自相一致性检查完成Warning消息例:
ERZ016050W/02342006-07-2411:36:53.175833000CICSNT012260/0001:事务处理'CRTE'的逻辑工作单元已被逆序(现场)恢复;分布式事务处理服务(TRAN)原因'ENC-tra-1025:客户机(不是事务服务)异常中止‘Error消息例:
ERZ058009E/00202006-07-2411:36:55.629361000CICSNT012260/0001:代码页‘IBM-1381’和代码页‘IBM-850’之间的数据转换例程不可用,错误号为2Console信息举例ERZ010054I/02052006-07-2411:34:48.827332000CICSNT013264/0001:CICS自相一致性检查完成ERZ014040E/01072006-07-2411:36:29.011086000CICSNT012260/0001AB34:在程序‘DFHCEMT’中事务‘CEMT’发生首次异常结束‘A28B’ERZ014016E/00282006-07-2411:36:29.071172000CICSNT012260/0001AB34:事务处理'CEMT',在'AB34'异常终止'A147'。SERVICE_MESSAGE2006-07-2411:36:29.101216000CICSNT012260/0001:Abend'A147'(firstabend'A28B')isreportedastransaction'CEMT'isforce-purged.ERZ058009E/00202006-07-2411:36:53.075689000CICSNT012260/0001:代码页‘IBM-1381’和代码页‘IBM-850’之间的数据转换例程不可用,错误号为2ERZ014010E/00122006-07-2411:36:53.105732000CICSNT012260/0001:不能初始化远程系统的通信以运行事务处理'CRTE'。ERZ014016E/00362006-07-2411:36:53.135776000CICSNT012260/0001:事务处理'CRTE',在'????'异常终止'A28D'。ERZ016050W/02342006-07-2411:36:53.175833000CICSNT012260/0001:事务处理'CRTE'的逻辑工作单元已被逆序(现场)恢复;分布式事务处理服务(TRAN)原因'ENC-tra-1025:客户机(不是事务服务)异常中止'ERZ058009E/00202006-07-2411:36:55.629361000CICSNT012260/0001:代码页‘IBM-1381’和代码页‘IBM-850’之间的数据转换例程不可用,错误号为2ERZ014010E/00122006-07-2411:36:55.659404000CICSNT012260/0001:不能初始化远程系统的通信以运行事务处理'CRTE'。ERZ014016E/00362006-07-2411:36:55.699462000CICSNT012260/0001:事务处理'CRTE',在'????'异常终止'A28D'。ERZ034114E/07312006-07-2411:36:55.699505000CICSNT013884/0001:从运行时数据库中尝试卸装条目'@1AN'失败。条目标记为使用。ERZ016050W/02342006-07-2411:36:55.729505000CICSNT012260/0001:事务处理'CRTE'的逻辑工作单元已被逆序(现场)恢复;分布式事务处理服务(TRAN)原因'ENC-tra-1025:客户机(不是事务服务)异常中止'Symrecs文件symrecs.nnnnnn
位于/var/cics_regions/<regionname>/Symrecs记录的格式:SYMPTOMS=primarysymptomdataSECONDARYSYMPTOMS=secondarysymptomdataSymrecs记录举例SYMPTOMS=PIDS/5765E2820LVLS/430PTFS/RIDS/TasLU_UpdateTidStateLINE/-1MS/016001MSN/63SRC/11PRCS/2097152AB/U1601PID/40608TID/1TIME/030112052304ISTSECONDARYSYMPTOMS=PostMortem
(ErrorPathisoffsetx'594'inTasLU_UpdateTidState<TasLU_ISyncpoint<TasLU_Syncpoint<PinCA_Route<CICSAPIE)loggingwhereerroroccurredCSMT.out文件位置:/var/cics_regions/<regionname>/data也可以写应用信息到CSMT.out文件:
EXECCICSWRITEQTDQUEUE("CSMT")FROM(debug-data)TXSeriesv6.2以后可以限制文件的最大长度为:TDD:CSMT:MaxSize。CSMT.out信息举例ERZ015033E/000303/10/0309:35:09CICSMAINUHHP:Transaction'QA55'attemptstorunprogram'QA55SUB'whichisnotdefinedinthedatabaseERZ015033E/000303/10/0309:36:52CICSMAINYHHP:Transaction'QA55'attemptstorunprogram'QA55SUB'whichisnotdefinedinthedatabaseCSMT.out信息举例ERZ028001E/621201/28/0315:19:45CICSPRODPS12:Theconnectiontotheremotesystem'HOST'cannotbestarted.Communicationserror15a00002/15a00102ERZ042028I/015901/28/0315:19:56CICSPROD:Terminal'PS12'withNETNAME'PS12'hasbeenuninstalled.ERZ042043I/080201/28/0315:20:00CICSPROD:WaitingfortaskstofinishwithCDentry'04PS'forremotesystem'PS04'ERZ016050W/023401/28/0315:23:26CICSPROD:Logicalunitofworkfortransaction'TPSL'hasbeenbackedout;DistributedTransactionService(TRAN)reason'ENC-tra-1025:Aclient(notthetransactionservice)aborted'一些Communicationserrorcode的含义15a00002/15a00102原因之一:远端域宕机,或者网络不通原因之二:在本地TD:timeout超时,远端交易还在队列LINK返回SysIdErr15a00007/a0000100Connectionfailed原因之一:在本地TD:timeout超时,远端交易还在运行LINK返回TermErr#注:在cics_eci.h中说明了所有主码为15a00007的解释。15a00007/84b6031Transactionunavailable原因之一:RD:MaxTClassLim引起的RejectLINK返回TermErr15a00007/8640000RemoteTransactionAbend引发本地交易肯定Abend<region
name>.env示例Dump和Traceback文件CICSDump内容TransactionDump将内存写入Dump文件中SystemDump上一次CICS命令执行的细节每一笔交易的执行细节Region的在Dump当时的配置非交易类进程的情况,例如recoveryserverEncinaClient的信息所有EnabledCICSTrace信息CICSDump文件目录RD.DumpName
缺省为dumpsRD.CoreDumpName
缺省为dir1文件名AAAANNNN.dmpmmAAAA-ASRA,ASRB,SYSA,SHUT,SNAP,dumpcode,abendcodeNNNN–序列号mm–文件序号,如果文件太大,自动被切成多个,用01,02标记CICSDump设置方法TD.TransDumpRD.SysDumpRD.PCDumpRD.ABDump描述nono不生成任何Dumpnoyes在以下情况异常终止异常shutdownCEMTPERFORMSNAP生成SystemDumpyesnonono仅生成TransactionDump,不含ASRA和ASRByesno为ASRA生成TransactionDumpyesno为ASRB生成TransactionDumpyesyesyes为ASRA生成SystemDumpyesyesyes为ASRB生成SystemDumpCICSDump的设置离线设置TD.TransDumpRD.SysDumpRD.PCDumpRD.ABDump在线设置CEMTINQUIRE/SETDUMPCEMTINQUIRE/SETDUMPOPTIONsUserExitDumpRequestUserExit(UE052017)生成CICSDumpTransactionDumpEXECCICSDUMPEXECCICSABENDCECIDUMPCECIABEND交易异常终止,包含ASRA和ASRBSystemDump系统异常终止CICSshutdownCEMTPERFORMSNAPASRAASRBCICSDump转换工具Cicsdfmt
cicsdfmt–r<域名><DMP文件名>CICSDump格式DumpStartMessage****CICSDUMPDETAILS(InfDU)****HeaderDumpFileName =SNAP0001.dmpDumpReason =CEMTPERFORMSNAPissuedDatedumpcreated =12/08/01Timedumpcreated =20:23:16ModuleServiceLevels@(#)super,16:08:18,Dec151999,s430-L991025-I@(#)conco,15:40:00,Dec151999,s430-L991025-I@(#)conti,15:43:14,Dec151999,s430-L991025-I@(#)comrl,15:52:50,Dec151999,s430-L991025-IDetailForEachModuleRegionconfigurationRegionPoolStorageRegionControlAreaIntervalControlAreaCICSModuleControlAreaCICSTraceRD.TransDumpTrace=yesDumpCompleteMessage****CICSDUMPCOMPLETE(InfDU)****CICSDump–RegionConfig–RD****DATABASECLASSMODULE(RegDC)****DUMPSTARTFORCLASSRERuntimedatabaseforClassRD BufferAddress=0x38e153f4......RegRE
IEntry:...... Nameofthedefaultuseridentifier=CICSUSER
CICSReleaseNumber=0430 Regionsystemidentifier(shortname)=ISC0 Regionapplicationidentifier(longname)=CICSRGN
MinimumnumberofApplicationServerstomaintain=1 MaximumnumberofApplicationServerstomaintain=5 RegionPoolStorageSize(bytes)=2097152 Task-privateStorageSize(bytes)=1048576 TaskSharedPoolStorageSize(bytes)=1048576 ThresholdforRegionPoolshortonstorage(%age)=90 ThresholdforTSHPoolshortonstorage(%age)=90 NumberofTaskSharedPoolAddressHashBuckets=512......CICSDump–RegionConfig–TD****DATABASECLASSMODULE(RegDC)****DUMPSTARTFORCLASSTRRuntimedatabaseforClassTD BufferAddress=0x38e15400......RegTR
IEntry:...... Resourcekeybuffer=THLO Grouptowhichresourcebelongs=Samples Activatetheresourceatcoldstart?=yes Resourcedescription=TransactionDefinition TypeofRSLChecks=none TypeofTSLChecks=internal Firstprogramname=PHELLO......CICSDump–RegionConfig–PD****DATABASECLASSMODULE(RegDC)****DUMPSTARTFORCLASSPRRuntimedatabaseforClassPD BufferAddress=0x38e153f0......RegPR
IEntry:...... Resourcekeybuffer=PHELLO
Grouptowhichresourcebelongs=Samples Activateresourceatcoldstart?=yes Resourcedescription=ProgramDefinition Numberofupdates=0 Protectresourcefrommodifications?=FALSE Programpathname=E:\TXSeries\CICS_Samples\Exercise_BMS/Hello Programtype=program......CICSDump–RegionConfig–UD****DATABASECLASSMODULE(RegDC)****DUMPSTARTFORCLASSUSRuntimedatabaseforClassUD BufferAddress=0x38e1540c......RegUS
IEntry: Resourcekeybuffer=CICSUSER
TransactionLevelSecurityKeyList=0000000100000000 ResourceLevelSecurityKeyList=00000000 DCEprincipaloftheuser=CICSUSER Userpriority=0 Encryptedpassword=......RegUS
IEntry: Resourcekeybuffer=TESTUSER
TransactionLevelSecurityKeyList=0000000100000000 ResourceLevelSecurityKeyList=00000000 DCEprincipaloftheuser=TESTUSER Userpriority=0 Encryptedpassword=SgJAEYVDLJQCICSDump–TransactionScheduler****SCHEDULERMODULE(ConTS)****ConTSprivateRCAData: ClassTable: Class0tasks:waiting=0 active=1 max,lim=n/a,n/a Class1tasks:waiting=0 active=0 max,lim=1,0 Class2tasks:waiting=0 active=0 max,lim=1,0 ...... ApplicationServers:Min=1,Current=3,Max=5 ServerIdleTime(seconds)=3600 IdleApplicationServerQueue: Anchor=0x70000994,First=0x700a62fc,Last=0x700a62a0 WaitingTasksQueue: Anchor=0x70000828,First=0x70000828,Last=0x70000828 RunningTasksQueue: Anchor=0x70000820,First=0x700a21bc,Last=0x700a21bcListofidleapplicationservers: ServerNumber102 ...... ServerNumber101 ......ListofRunningtransactions: TaskNo=71,TranId=CEMT,UserId=,DeviceId= AppServer=105,State=Running,Class=0,Priority=255CICSDump–TaskControlAreaTaskControlAreaHeader: AIXprocessID =2520 ApplicationServerID =105 ......TaskControlAreaTaskspecificpart: UserName =CICSUSER TCAForcePurgeflag? =FALSE TCAPurgeflag? =FALSE
ReturnTran? =FALSE
UserMode? =FALSE (若TRUE,出错一定在用户代码中,需要进一步调试程序) (若FALSE,出错可能是应用程序调用CICSAPI不当引起) ......EXECInterfaceBlock: ============CICSEIBstructure============== EIBTIME:Timetaskstarted =Ox0202308C EIBDATE:Datetaskstarted =Ox0101224C EIBTRNID:TransactionID =CEMT EIBRCODE:ResponseCode =Ox000000000000 ......CICSDump–ControlModuleProgramControlInformation: ProgramName =DFHCEMT ValueofResidentattribute =No Programfullpathname =C:\opt\cics\bin\DFHCEMT.dllProgramData:BufferAddress =0x3815e000Offset0123456789ABCDEFASCIIEBCDIC------------------------------------------------------------------------------000000000000000000006300FFFF00000000[........c.......][................]001000000000000000200100010000000000[...............][................]00000000...4linesofzerossuppressed......EXECCICScommandstring: BufferAddress=0x127044
EXECCICSGETMAIN SET(X'00128110') FLENGTH(9200) INITIMG(0) NOHANDLE通过Dump寻找应用错误(AIXOnly)加编译开关cicstcl–s 或 CCFLAGS=“-qlist”会在编译后生成*.lst
文件设置RD属性RD.ABDump=no
或:CEMTSETDUMPOPTIONSNOABABENDRD.PCDump=no
或:CEMTSETDUMPOPTIONSNOPCABEND设置TD属性TD.TransDump=yes交易出错时生成TransactionDump/var/cics_regions/region/dumps/dir1/AAAANNNN.dmpmm/var/cics_regions/region/dumps/dir1/cicsASPID.traceback通过Dump寻找应用错误(AIXOnly)格式化Dump文件cicsdfmt–r<域名>AAAANNNN.dmpmm>AAAANNNN.dmpmm.txt注意,不同平台上的Dump文件不一定可以相互做格式化例如AIX上的Dump文件在NT上不能做cicsdfmt在txt中查找调用堆栈,找到出错点对照*.lst
文件,找到出错代码行对照*.c文件,找到出错代码寻找错误(AIXOnly)–Sampleconsole.msgERZ052004I/060209/05/0104:44:12CICSRGNGPAC:Dumpto'ASRA0006.dmp'started.ERZ052007I/060409/05/0104:44:12CICSRGNGPAC:Dumpto'ASRA0006.dmp'completed.ERZ014016E/002809/05/0104:44:12CICSRGNGPAC:Transaction'TDPU',Abend'ASRA',at'GPAC'.ERZ015028W/015409/05/0104:44:12CICSRGNGPAC:Exceptioninuserapplicationcode-exceptionstringis:'exc_e_illaddr'ERZ016050W/023409/05/0104:44:12CICSRGNGPAC:Logicalunitofworkfortransaction'TDPU'hasbeenbackedout;DistributedTransactionService(TRAN)reason'ENC-tra-1025:Aclient(notthetransactionservice)aborted'寻找错误(AIXOnly)–SampleASRA0006.dmp01.txt****STARTOFTRANSACTIONDUMP****ApplicationServerid=102TransactionId=TDPUUserName=CICSUSERDetailsoffunctionbeingexecuted:0x2ff1e8c0FunctionName=mainServiceLevel=Offsetofcurrentinstruction=0x1e8Calledbyfunction=PinCA_StartCfromoffset=0x148Calledbyfunction=TasPR_CallApplicationfromoffset=0x404Calledbyfunction=TasPR_RunProgramfromoffset=0x11d8......寻找错误(AIXOnly)–SampleTransactionDumpUser.lst......79|CL.2:84|0001CClwz8062000C1L4Agr3=._iob(gr2,0)84|0001D0addi386300402AIgr3=gr3,6484|0001D4addi389F00641AIgr4=gr31,10084|0001D8bl4BFFFE290CALLgr3=fprintf,2,gr3,gr4,fprintf",...84|0001DCori60000000186|0001E0lwz8061004C0L4Agr3=pStringBuffer(gr1,76)86|0001E4addi389F00781AIgr4=gr31,120
86|0001E8
lswi7CA4F4AA4LSIgr5-gr12=+CONSTANT_AREA(gr4,0),3086|0001ECstswi7CA3F5AA4STSI#MEMORY(gr3,0)=30,gr5-gr12,mq"87|0001F0lwz806100481L4Agr3=pCommArea(gr1,72)87|0001F4lwz8081004C0L4Agr4=pStringBuffer(gr1,76)87|0001F8bl4BFFFE090CALLNgr3,#MEMORY=strcpy,...87|0001FCori60000000192|000200lwz83C200080L4Agr30=.$STATIC_BSS(gr2,0)92|000204addis3C6020001LIUgr3=8192寻找错误(AIXOnly)–SampleTransactionDumpUser.c21voidmain()22{24longlRespCode;25char*pCommArea;26char*pStringBuffer=0;29EXECCICSADDRESSEIB(dfheiptr)RESP(lRespCode);......57EXECCICSADDRESSCOMMAREA(pCommArea)RESP(lRespCode);......84fprintf(stderr,"CommArea=[%s]\n");8586strcpy(pStringBuffer,"TransactionDumpinUSERcode");87strcpy(pCommArea,pStringBuffer);90EXECCICSRETURN;98}Traceback文件CICSproducestracebackfileswhenanapplicationorCICSinternalcoderaisesanillegalexception(SigSEGV,SigILL).TracebackFilesaregeneratedunderthedirectory/var/cics_regions/<regionname>/dumps/dir1Thegeneratedtracebackfilewillhaveafilenamecics<pid>.tracebackwhere:pidistheprocessidwhichhasgeneratedtraceback.Traceback文件信息举例-----------------StackTraceback--------------------PID=32782,TID=19-FunctionstrlenOffset=00948-FunctionmainOffset=01047-FunctionPinCA_StartCOffset=01D06-FunctionTasPR_CallApplicationOffset=05085-FunctionTasPR_RunProgramOffset=14D84-FunctionTasPR_IRunOffset=1FEC3-FunctionTasTA_ExecOffset=1CA02-FunctionTasTA_RunOffset=1C281-FunctionmainOffset=0B680-Function__startOffset=0088……Traceback文件信息举例……16-FunctionsqlallOffset=166015-FunctionsqlselOffset=034414-FunctionsqlnstOffset=0CCC13-FunctionsqlcmexOffset=02B412-FunctionsqlcxtOffset=007411-FunctionmainOffset=055810-FunctionPinCA_StartCOffset=01489-FunctionTasPR_CallApplicationOffset=03D88-FunctionTasPR_RunProgramOffset=11D87-FunctionTasPR_IRunOffset=13B06-FunctionTasPR_RunOffset=0AB05-FunctionPinCA_RouteOffset=06C44-FunctionComFS_APPCServOffset=0D503-FunctionTasTA_ExecOffset=19342-FunctionTasTA_RunOffset=16441-FunctionmainOffset=09B40-Function__startOffset=0060可用的系统工具利用系统工具诊断showProcInfo(Encinashipsthistool)dbxdumpThreadsAIX或其它UNIX命令工具showProcInfo与dbx.showProcInfoisaEncinasupplieddebuggingtool.Itisbasedondbx,whichisaOS(inthiscaseAIX)supplieddebugger.dbxisavailableonSolarisbutnotonHP-UX.showProcInfouses'dde'onHP-UX.gdbcanalsobeusedasadebugger.OnAIX,dbxisavailableaspartofthebos.debug
fileset,whichwillneedtobeexplicitlyinstalled.Ifbos.debugisnotinstalled,eventheshowProcInfowouldnotrun.ThistoolisheavilyusedbyCICScustomerstocollectdebuggingdata.Debuggerscannotcatchtheexits.Notagoodpracticetocodeexitsinapplicationprograms.showProcInfo简介showProcInfoisrunonCICSApplicationServersandcore.<TimeStamp>filestogetthecurrentstateoftheprocessandit'sthreads.Typically,showProcInfoisusefulduringaregionhang,howevercouldbeusedtocollectasnapshotoftheApplicationServerProcesses.showProcInfoisavailableonallplatforms.dbx简介dbxcanbeusedtodebugaprogram.Setbreakpoints.Checkthestacktrace,etc.Aprogramcanberunthroughadbxsessionitselfordbxcanbeattachedtoanalreadyrunningprogram.Howtorunaprogramunderdbx?dbx<programpathname>Howtoattachdbxtoanalreadyrunningprogram.Identifytheprocessidoftheprogramusingtheps-efcommand.Attachtodbxusing,dbx-a<processid>.Iftheprogramsarecompiledwitha-goption,thedbxwillshowtheargumentnamesaswell,elseonlytheoffsetscanbeseen.Howtoseeacorefilethroughdbx?dbx<pathnameforprogram>coreOnSolarisandHP,couldusethe'file'commandtofindoutwhichprogramdumpedthecore.OnAIX,followingcommandcanbeusedforthesame:lquerypv-hcore6b0dbx命令(1)Iftheprogramisbeingrunindbx,thenweshouldtype'run'commandtostarttheprogram.Ifdbxisattachedtoanalreadyrunningprogram,thenoncethedbxisattached,theprogramisonahold.'continue'or'cont'commandshouldbeusedtocontinueprocessing.Breakpointscanbesetusingthecommands,stopin<symbolname>stopat<linenumber:filename>dbx命令(2)clear-Toclearallthebreakpointsatagivenline.step(stepin)-Todebuginstructionbyinstruction.Willtakeyouinsidethesubroutinesaswell.stepout-Willtakeoutofthesubroutinetothemainprogramfromwherethisfunctionwascalled.next-Toexecutethenextinstruction.Willnotgointothefunctioncalls.cont-Runtheprogramuntilthenexthelp-Tolistalldbxcommandsandtheirhelpinformation.status-Showsthecurrentbreakpointsset.catch-Usedtocatchasignalindbxitselfbeforesendingitacrosstoprograms.list-Tolistthesourcecodeline.Effectiveonlyifcompiledwith-goption.dbx命令(3)ignore-dbxignoresthespecifiedsignal(defaultstoallsignals).where-showsthestacktrace.rerun-Runtheprogramonceagain.dump-Todumptheactivevariables.delete-Deletesthebreakpoints.sh-Usedtopassthecommandlinetotheshellforexecution.用于调试的其它AIX/UNIX命令nm->Tocheckifasymbolisdefinedinalibraryoraprogram.
nm<pathnameoftheprogram>ldd(onsolarisandhp)->showsthedependenciesoftheobjects.ldd-rshowstherecursivedependency.dump-Hv->ShowstheobjectdependenciesonAIX.ps
eawww->Dumpstheenvironmentofaprocess.pstack->Solarisspecific.CouldbeusedlikeshowProcInfo.ps
va->Listsprocesseswithmemoryusage.vmstat<timeinterval><repeatinfo>
UsedtochecktheCPUusage.Eg.vmstat410.Runthevmstateveryfoursecondsandrepeatfor10times.errpt-a->DisplaystheOSrecordederrors.truss(AIXv5andsolaris):Usedtotracethecommands.综合分析获取客户机IP地址使用环境变量“CICS_DEBUG_CPMI=1”,相关信息会被打印到console文件。在TXSeriesv5.1或者TXSeriesv以后实现。ASRA时生成CORE文件设置环境变量:
CICS_CORE_ON_ASRA=1检查内存等资源泄漏#例:RD:ServerMemCheckInterval=3600RD:ServermemCheckLimit=4Managememorygrowthchecking1.RD:ServerMemCheckIntervalTimeinsecondsbetweenmemorygrowthchecksDefaultis3600(0isdisabled)2.RD:ServermemCheckLimitNumberofconsecutivechecksbeforeCICSreportsgrowthDefaultis4(0meansdisabled)3.Messageswrittentoconsole检查内存等资源泄漏-CICS_LEAKDEBUG环境变量1.Usedtocheckformemorygrowthandfiledescriptorleaks2.Setintheregions“environment”file3.Filecreatedforeachcicsasprocesscalledcicsas.<pid>4.Followingoptionsareavailable:LOGDIR=<Locationofthedirectorytostorereportfiles>MEM=<heap|taskprivate|taskshared>LANG=<c|cpp|cobol|ibmcob|ibmpli|java|cbmfnt|ALL>FILEDES=minlimit=<value>,maxlimit=<value>[,allowcore]TIMESTAMP=<ON|OFF>LEVEL=<1forentry/exit,2forfulldebug>TRAN=<Listoftransactions>#例:CICS_LEAKDEBUG="LOGDIR=/var/cics_regions/leakMEM=heapLANG=c,cpp,javaFILEDES=allowcore,minlimit=1000,maxlimit=1100TIMESTAMP=ONTRAN=SAMP"检查内存等资源泄漏–例#例:参数设置RD:ServerMemCheckInterval=3RD:ServerMemCheckLimit=3CICS_LEAKDEBUG="LOGDIR=c:\cicstmpMEM=heapLANG=c,cpp,javaTIMESTAMP=ONTRAN=CPMI,T001,T002"得到:c:\cicstmp\cicsas.leakdebug.2992.log#例:Log文件2007-01-1716:53:39[BL10972AL110842007-01-1716:53:39{2007-01-1716:53:39BE11084CPMID:\B\cics\srv\gettime.dll(LANGMETHOD=C)2007-01-1716:53:39AE111562007-01-1716:53:39}=722007-01-1716:53:41(LINK111762007-01-1716:53:41{2007-01-1716:53:41BE11176CPMID:\B\cics\srv\gettime(LANGMETHOD=C)2007-01-1716:53:41AE111802007-01-1716:53:41}=42007-01-1716:53:41LINK11180)=4关于资源使用注意事项其它可能造成资源损失的原因某些操作系统缺陷可以导致内存泄漏,所以要尽量打操作系统的补丁,打操作系统的补丁后一般要重新启动操作系统。在程序中不通过EXECCICSRETURN或EXECCICSABEND就直接退出,可以导致RegionPool的泄漏。如果使用了操作的系统的malloc,open等,在CICS程序发生Abend时,可能导致资源的泄漏。使用UNIX的ps–el或者ps
va等命令可以观察cicsas的size是不是在持续增长。交易挂起问题的分析步骤使用交易分类,确保cicsas不被占满。使用cicsterm的CEMT观察挂起的交易的ID和程序名,以及PID。使用showProcinfo,truss,dbx等观察cicsas进程的栈信息。如果正在执行数据库操作,使用数据库工具,查找正在执行的SQL语句等。使用Timeouts避免长时间等待EciTimeout(s)
ThetimeinsecondstowaitforaresponsefromtheCICSserver.(对CICS_TCP:)TD:Timeout(m)
Conversationaltimeoutvalue(mins)-Thisattributespecifies,inminutes,howlongCICSwaitsforterminalinputwhenrunningthistransaction.TD:DeadlockTimeout(s)
Thisattributespecifies,inseconds,howlongCICSallowsthetransactiontowaitwhenCICShasdetectedapossibledeadlock.(对PPC_TCP,PPC_GATEWAY:)CD:AllocationTimeout(s)
Specifieshowmanysecondsafront-endtransactionwaitsforaback-endtransactiontobestartedoveracommunicationslink.RD:XPRecvTimeout(s)。(对TXSeriesv4.2,使用CICS_XP_RECV_TIMEOUT)
ThisattributespecifiestheintervalinsecondsthatCICSwaitsbeforetimingoutComSU_XPRecvcalls.(对LOCAL_SNA:)CICS_SNA_RECEIVE_TIMEOUT(s)
在region的environment文件中设置此环境变量,格式如下:CICS_SNA_RECEIVE_TIMEOUT="SYS1,N1,SYS2,N2,SYS3,N3,SYS5,N5,...SYSn,Nn"EciTimeoutECI超时后返回-6,服务器10
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论