|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CICS Mainframes Memory leak Debugging |
« View previous topic :: View next topic » |
Author |
Message
|
dfor |
Posted: Fri Feb 17, 2006 2:35 am Post subject: CICS Mainframes Memory leak Debugging |
|
|
Newbie
Joined: 17 Feb 2006 Posts: 1 Location: Chennai
|
Hi friends
I use CICS Mainframes and execute my C++ transactions. I have a problem with memory leaks in my program. I would like to know a way to generate any diagnostic report of the memory allocation. I checked in IBM site and found an option to produce memory diagnostic reports for CICS TXSeries. But its not applicable for CICS Mainframes. Is there any other option to identify memory leaks?
I would be glad to hear any probable solution. |
|
Back to top |
|
 |
wschutz |
Posted: Fri Feb 17, 2006 3:11 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Fri Feb 17, 2006 4:05 am Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
CICS mainframes? I am not sure, I follow you here.
CICS is a 'started task' (a STC job); perhaps, a daemon is a close approximation. Thus, a memory leak (I am not sure of this term either; are you talking about ASRA abend* or a S0C4 abend) or others are spooled into the CICS master job. You might want to talk to your system programmers to get you a dump of the CICS job which will help you in locating the offending instruction.
BTW, is this C/C++ on mainframes?
(*abend is short for abnormal end) _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
zpat |
Posted: Fri Feb 17, 2006 12:37 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
There is a CICS debugger, which is about all I know about it.
Traditionally one would diagnose mainframe storage "leaks" by taking a system dump and looking though the storage structures, or by running a GTF trace on the getmain/freemain SVCs.
However I am sure CICS has it's own storage allocation routines, can these be traced? |
|
Back to top |
|
 |
Gouldmar |
Posted: Sat Feb 25, 2006 12:12 pm Post subject: |
|
|
Novice
Joined: 03 May 2005 Posts: 11 Location: Munich, Germany
|
You need to do a CICS trace. This will show the requests for CICS services and will help you diagnose what your program is doing.
If you think your program is leaking storage (it is not often that CICS causes a storage leak!) check the followng:
Where are you specifying to get the storage on the GETMAIN? If you specified SHARED storage this will not be freed at the end of the transaction. From experience using shared storage can account for 90% of memory leak issues
You will need to check the number of EXEC CICS GETMAIN commands your program has executed compared to the number of EXEC CICS FREEMAIN commands, if your program runs for the full life of CICS region then your program not freeing the storage will cause the storage usage to increase.
A good reference point for CICS probelm solving is the CICS Problem Determination manual, you can download a copy from the IBM web site.
If you need more help, then post back. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|