Skip to main content

Techdocs Library > Hints, tips & Technotes >

How to find the CPU Time Usage in your WebSphere V5 for z/OS java programs



Document Author:

John Hutchinson


Document ID:

TD101339


Doc. Organization:

Washington Systems Center


Document Revised:

04/06/2006


Product(s) covered:

WebSphere Application Server for z/OS







Abstract: You can determine the amount of CPU time used by your java programs in WebSphere Version 5 for z/OS with the obtainTotalCpuTimeUsed() method in the SMFJActivity class. This returns the total CPU time in microseconds accumulated for the enclave in which you are running.


Here is an example of code to return the total CPU time in microseconds accumulated for the transaction.
TimeUsedCPU method.pdf


Also included is an application that uses these methods in an EJB, Servlet, and JSP. (Source is included.)
MyIVTpmi.ear



Classification:

Software

Category:

Performance




Platform(s):

IBM System z Family

S/W Pillar(s):

WebSphere; System z

O/S:

OS/390; z/OS

Keywords:

CPU, time, used, pmi, WebSphere Application Server, z/OS, SMFJActivity, obtainTotalCpuTimeUsed

The Techdocs Library
Is this your first visit to Techdocs (the Technical Sales Library)?

Learn more


Techdocs QuickSearch

: