Go to Home Page
Questions?
Call 1-800-572-5517
 
  Go to Home Page  
  See all products
  See price schedules
  See manuals, tutorials, articles
  Download a free 30-day trial
  See user testimonials
  About Pacific Systems Group
 
 
SMF Tools
  See SMF Record Layouts
  See Sample SMF Reports
  Learn How to Export SMF Data
  Download Free SMF Reporting Software (30 days)
 
One of the greatest SMF record parsing programming languages I've ever seen. Chief, Large Systems Services Branch, NIH
  Choose Spectrum Writer to add 4GL to your product
  Free 60-Page Book (PDF) - How to Make an SMF Report
Spectrum DCOLLECT Reporter - the 4GL DCOLLECT Report Writer.

Spectrum SMF Writer - the 4GL SMF Report Writer.

SMF Type 120 Record - Subtype 6

This table shows the record layout for type 120 SMF records
(WebSphere Appl - J2EE container interval record - Version 2).

List of other SMF record layouts available.
List of sample SMF reports.

Purpose: WebSphere Application Server writes record type 120 to collect WebSphere Application Server performance statistics.

Record type 120 has the following subtypes:

  • Subtype 1 - the Server Activity record
  • Subtype 6 - the Server Interval record
  • Subtype 5 - the J2EE Container Activity Record
  • Subtype 6 - the J2EE Container Interval Record
  • Subtype 7 - the WebContainer Activity record
  • Subtype 8 - the WebContainer Interval record

Subype 6 - J2EE Container Interval Record (Version 2)

The purpose of the J2EE container interval SMF record is to record activity within a J2EE container that is located inside the WebSphere® Application Server transaction server.

This record is produced at regular intervals and is an aggregate of the activities running inside a J2EE container during the interval. This record can be used to perform application profiling, problem determination, and capacity planning.

A single record is created for each active J2EE container located in a WebSphere Application Server transaction server within the interval being recorded. If there is more than one server instance associated with a server, a record for the container will exist for each server instance. To get a common view of the work running in the J2EE container during the interval, you must merge the records after processing.

You can specify an interval through the WebSphere Application Server administrative console by setting server_SMF_interval_length=n, where n is the desired number of seconds.

You can activate this record by setting server_SMF_container_interval_enabled=1 (or server_SMF_container_interval_enabled=true) on the administrative console.

The J2EE Container Interval record contains:

  • J2EE container interval section (one section per record):
    Contains aggregated information about all activities that occurred within one J2EE container in the specified interval.
  • Bean section (multiple (0..n) sections per record, see subtype 5):
    Contains information about all beans involved in this activity in the specified interval.
  • Bean method section (multiple (0..n) sections per bean section, see subtype 5):
    Contains information about all methods of this class involved in this activity in the specified interval.

It's easy to report on SMF 120 data! (Jump to sample reports)

SMF Spectrum Writer
We have a low-cost 4GL report writer especially for SMF files. It's called Spectrum SMF Writer.

Spectrum SMF Writer handles the difficult SMF record parsing for you automatically. You just specify which fields you want to see.

Spectrum SMF Writer also converts the arcane date and time fields and reformats them into an attractive report.

Plus, Spectrum SMF Writer can export SMF data as comma delimited files to use on your PC.
 
Try It FREE Now!

SMF Type 120 Record -- WebSphere Appl - J2EE container interval record - Version 2
Offset
(Dec.)
Offset
(Hex)
NameLengthFormatDescription
00SMF120LEN2binary
Record length. This field and the next field (total of four bytes) form the RDW (record descriptor word).
22SMF120SEG2binary
Segment descriptor (see record length field)
44SMF120FLG1binary
Bit meaning when set
0: New SMF record format
1: Subtypes used
2: Reserved
3-6: Version indicators*
7: Reserved
55SMF120RTY1binary
Record type 120(X'78')
66SMF120TME4binary
Time since midnight, in hundredths of a second, that the record was moved into the SMF buffer.
10ASMF120DTE4packed
Date when the record was moved into the SMF buffer, in the form 0 cyydddF.
14ESMF120SID4EBCDIC
System identification (from the SMFPRMxx SID parameter)
1812SMF120SSI4EBCDIC
Subsystem identification from SUBSYS parameter
2216SMF120RST2binary
Record subtype:
1: Server activity
2: Container activity
3: Server interval
4: Container interval.
5: J2EE container activity
6: J2EE container interval
7: WebContainer activity
8: WebContainer interval
2418SMF120TRN4binary
Number of triplets in this record. A triplet is a set of three SMF fields (offset/length/number values) that defines a section of the record. The offset is the offset from the RDW.
Subtypes:
1: Value is equal to the number of sessions +2
2 and 4: Value is equal to the number of classes +2.
281CSMF120PRS4binary
Offset to product section from RDW.
3220SMF120PRL4binary
Length of product section.
3624SMF120PRN4binary
Number of product sections.
Individual header extension for subtype 6
4028SMF120JI14binary
Offset to J2EE container interval section from RDW
442CSMF120JI24binary
Length of J2EE container interval section
4830SMF120JI34binary
Number of J2EE container interval sections
The following triplet appears once for each bean section.
5234SMF120JIS4binary
Offset to bean section from RDW
5638SMF120JIL4binary
Length of bean section
603CSMF120JIN4binary
Number of bean sections
Product Section
(Offset from beginning of record: SMF120PRS)
00SMF120MFV4binary
CB SMF version
44SMF120COD8EBCDIC
Character codeset in which strings in the SMF record are encoded
12CSMF120END4binary
Encode of numbers in the SMF record
1610SMF120TSF4binary
Encoding of timestamps:
1: S390STCK64: The time values are encoded in 64-bit S/390 Store Clock format.
Reassembly information.
2014SMF120IXR4binary
Index of this record
2418SMF120NRC4binary
Total number of records
281CSMF120NTR4binary
Total number of triplets
J2EE container interval section.

The J2EE container interval section contains information about each activity that occurred within one J2EE container in the specified interval.

There is one section per record.

(Offset from beginning of record: SMF120JI1)
00SMF120JI464EBCDIC
The WebSphere Application Server for z/OS® transaction server host name.
6440SMF120JI58EBCDIC
The WebSphere Application Server for z/OS transaction server name.
7248SMF120JI68EBCDIC
The WebSphere Application Server for z/OS transaction server instance name.
8050SMF120JI7512Unicode
The WebSphere Application Server for z/OS container name. Note: This is hardcoded to 'Default' for the 4.0.1 time frame.
592250SMF120JI816S390STCK
The time that the sample began in the server.
608260SMF120JI916S390STCK
The time that the sample ended.
624270SMF120CL38EBCDIC
Cell
632278SMF120ND38EBCDIC
Node
Bean Section

There are multiple sections per record.

(Offset from beginning of record: SMF120JIS)
00SMF120JB1512Unicode
AMCName of the bean activated by the container. Note: If the length of the AMCName exceeds 256 DBCS characters (512 bytes), the rightmost 256 characters are recorded.
512200SMF120JB260binary
UUID based AMC name
57223CSMF120JB34binary
The bean's type. 2: Stateless session bean. 3: Stateful session bean. 4: BMP entity bean. 5: CMP entity bean. 6. Message-driven bean.
576240SMF120JB44binary
RESERVED
580244SMF120JB54binary
RESERVED
584248SMF120JB64binary
RESERVED
58824CSMF120JB74binary
The bean's reentrance policy. 0: Not reentrant within transaction. 1: Reentrant within transaction.
592250SMF120JB84binary
RESERVED
596254SMF120JMC4binary
RESERVED
600258SMF120JM64binary
RESERVED
60425CSMF120JB94binary
Number of method triplets in this bean section
Bean Method Triplets

The following triplet appears 0-n times; once for each bean method section.

(Offset from beginning of record: SMF120JIS + 608)
00SMF120JBS4binary
Offset to bean method section from the beginning of this bean section
44SMF120JBL4binary
Length of bean method section
88SMF120JBN4binary
Number of bean method sections
Bean Method Section

There are multiple sections per bean section. The bean method section contains information about all methods of beans involved in this activity.

(Offset from beginning of record: SMF120JBS)
00SMF120JM11024Unicode
The name of the method including its signature in its externalized, human-readable form. If the length of the method exceeds 512 DBCS characters (1024 bytes), the leftmost 512 characters are recorded.
1024400SMF120JM24binary
The number of times the method was invoked during the activity.
1028404SMF120JM34binary
Average response time. The response time is measured in milliseconds (the granularity provided by the JVM - hopefully, it will be equal to 0 in most cases).
1032408SMF120JM44binary
Maximum response time. The response time is measured in milliseconds.
103640CSMF120JM54binary
The bean method's transaction policy. Values from com.ibm.websphere.csi. TransactionAttribute.java:
0: "TX_NOT_SUPPORTED"
1: "TX_BEAN_MANAGED"
2: "TX_REQUIRED"
3: "TX_SUPPORTS"
4: "TX_REQUIRES_NEW"
5: "TX_MANDATORY"
6: "TX_NEVER"
1040410SMF120JM84binary
RESERVED.
1044414SMF120JM94binary
RESERVED.
1048418SMF120JMA512Unicode
List of ejbRoles associated with the method. Separator character: ";" (semicolon). If the length of the concatenated string exceeds 256 characters (512 bytes), only its leftmost 256 characters are recorded.
1560618SMF120JMB4binary
RESERVED.
156461CSMF120JMD4binary
RESERVED.
1568620SMF120JME4binary
ejbLoad: # of invocations
1572624SMF120JMF4binary
ejbLoad: avg execution time
1576628SMF120JMG4binary
ejbLoad: max execution time
158062CSMF120JMH4binary
ejbStore: # of invocations
1584630SMF120JMI4binary
ejbStore: avg execution time
1588634SMF120JMJ4binary
ejbStore: max execution time
1592638SMF120JMK4binary
ejbActivate: # of invocations
159663CSMF120JML4binary
ejbActivate: avg execution time
1600640SMF120JMM4binary
ejbActivate: max execution time
1604644SMF120JMN4binary
ejbPassivate: # of invocations
1608648SMF120JMO4binary
ejbPassivate: avg execution time
161264CSMF120JMP4binary
ejbPassivate: max execution time
1616650SMF120JMQ8binary
Average cpu time in microseconds.
1624658SMF120JMR8binary
Minimum cpu time in microseconds.
1632660SMF120JMS8binary
Maximum cpu time in microseconds.

The table above is based on the description provided by IBM in its "MVS Systems Management Facilities (SMF)" manual.

Sample Report from SMF 120
WebSphere Application Java CPU Times


The sample SMF report below was created with Spectrum SMF Writer, the low-cost 4GL SMF report writer. It reads as input the SMF file and selects just the type 120 WebSphere Application records for Jave 2 Enterprise Edition containers. (See SMF 120-5 record layout.) It then prints a report line for each Java bean method accounting section found. The report shows CPU time information about those Java bean methods. Note that a single SMF 120 record can contain information about multiple beans and multiple methods per bean.

All of this with just a few of code!
Why not install a Spectrum SMF Writer trial right now and start making your own SMF reports!

These Spectrum SMF Writer Statements:


INPUT:  SMF12005

INCLUDEIF: SMF120RTY=120   AND SMF120RST=5

TITLE: 'Z/OS WEBSPHERE APPLICATION SMF 120 DATA'
TITLE: 'SUBTYPE 5 -- J2EE CONTAINER ACTIVITY'

COL: SMF120RST(3 'SUB/TYP')
     SMF120JA4(5 'TRANS/SERVER/HOST')
     SMF120JA5(6 'TRANS/SERVER/NAME')
     SMF120JA8_EBC(8 'CONTAINER/NAME')
     SMF120CL2('CELL')
     SMF120ND2('NODE')
     SMF120JB1_EBC(10 'BEAN/NAME')
     SMF120JM1_EBC(25 'BEAN/METHOD')
     SMF120JM2(5 'TIMES/INVOK')
     SMF120JM3('AVG/RSP/TIME' TPIC'9.999' )
     SMF120JM4('MAX/RSP/TIME' TPIC'9.999'  )
     SMF120JMQ('AVG/CPU/TIME' TPIC'9.999999' )
     SMF120JMR('MIN/CPU/TIME' TPIC'9.999999')
     SMF120JMS('MAX/CPU/TIME' TPIC'9.999999')

 

Produce This SMF Report:


                                            Z/OS WEBSPHERE APPLICATION SMF 120 DATA
                                             SUBTYPE 5 -- J2EE CONTAINER ACTIVITY

     TRANS TRANS                                                                         AVG   MAX    AVG      MIN      MAX
 SUB SERVE SERVER CONTAINE                      BEAN              BEAN            TIMES  RSP   RSP    CPU      CPU      CPU
 TYP HOST   NAME    NAME     CELL     NODE      NAME             METHOD           INVOK TIME  TIME    TIME     TIME     TIME
 ___ _____ ______ ________ ________ ________ __________ _________________________ _____ _____ _____ ________ ________ ________

   5 AWT4  AXZ4S1 Default  AXZ4     AXZ44    Tonam::Inf invoke:java.lang.String,j     1 0.014 0.014 0.013665 0.013665 0.013665
   5 AWT4  AXZ4S1 Default  AXZ4     AXZ44    Tonam::Inf invoke:java.lang.String,j     1 0.020 0.020 0.006287 0.006287 0.006287
   5 AWT4  AXZ4S1 Default  AXZ4     AXZ44    Tonam::Inf login:java.lang.String,ja     1 0.006 0.006 0.004206 0.004206 0.004206
   5 AWT4  AXZ4S1 Default  AXZ4     AXZ44    Tonam::Inf invoke:java.lang.String,j     1 0.004 0.004 0.003605 0.003605 0.003605
   5 AWT4  AXZ4S1 Default  AXZ4     AXZ44    Tonam::Inf invoke:java.lang.String,j     1 0.007 0.007 0.004831 0.004831 0.004831
   5 AWT4  AXZ4S1 Default  AXZ4     AXZ44    Tonam::Inf invoke:java.lang.String,j     2 0.005 0.010 0.005650 0.001264 0.010036

 *** GRAND TOTAL (     6 ITEMS)

See other sample SMF reports.

Copyright 2024.
Pacific Systems Group.
All rights reserved.


Spectrum Writer 4GL - the economical alternative to SAS, Easytrieve, DYL-280...

Home | Products | Prices | Documentation | 30-Day Trials | Customer Reviews | Company | FAQ | Sample Reports | SMF Records
Send Your Comments or Questions