Question

  Asked: Feb 26 2008   7:07 PM GMT
  Asked by: Pcrum73


Performance Tracking of Stored Procedures


COBOL, COBOL stored procedure, Performance/Tuning, Performance management, Stored procedures, CPU usage, MIPS, .NET application

we have a current system where a COBOL stored procedure is called by a .NET application. This COBOL SP then calls multiple COBOL subprograms which perform calculations and update files and then eventually return a value to the .NET app. We have a limitation in tracking the performance of each called subprogram, due to the CPU usage being lumped together for the entire DB2 thread started by the SP. Does anyone know of a way, or a tool that can show the CPU usage of all called programs from the SP?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Not a general tool, but if you own the stored procedure and related subprograms then you might be interested in the Performance Explorer (PEX) APIs. These APIs allow you to capture application related performance data at points in the application that you choose and, as a "free" side benefit, also system tracked performance data -- like CPU usage, IO activity, etc.

You can find some examples (RPG, CL, and COBOL) in my COMMON 2007 presentation Integrating Serviceability Into Your ILE Applications here. I do have an updated presentation that includes V6R1 content that will be available shortly, but the V6R1 changes are related to Watches and Tracing, not PEX.

Bruce Vining
http://www.brucevining.com/
Integrated solutions for the System i user community
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400, Networking and Database.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register