APAR status
Closed as program error.
Error description
Attempting to write a PMI client to display performance
metrics published by WebSphere.
Using the feature whereby one set of statistics can be
updated by another. For example, fetch the statistics from
WebSphere, wait a period of time, then update the statistics
with the latest statistics from WebSphere. Will see a duplicate
entry as result.
The problem is that when update one set of statistics with
another, duplicate entries of some statistics appear. The
values of the duplicate statistics can be different, giving
incorrect results.
Sample problem:
Test case to show the problem. To run the test
case, do the following: -
1). Get access to a WebSphere 5.1 installation.
2). Enable Performance Metrics - all modules set to "High".
3). Set up the attached Java program to run using the following
class path:
/<WebSphere-Dir>/AppServer/lib/admin.jar"
/<WebSphere-Dir>/AppServer/lib/j2ee.jar"
/<WebSphere-Dir>/AppServer/lib/jmxc.jar"
/<WebSphere-Dir>/AppServer/lib/namingclient.jar"
/<WebSphere-Dir>/AppServer/lib/nls.jar"
/<WebSphere-Dir>/AppServer/lib/pmi.jar"
/<WebSphere-Dir>/AppServer/lib/pmiclient.jar"
/<WebSphere-Dir>/AppServer/lib/ras.jar"
/<WebSphere-Dir>/AppServer/lib/soap.jar"
/<WebSphere-Dir>/AppServer/lib/soap-sec.jar"
/<WebSphere-Dir>/AppServer/lib/wasjmx.jar"
/<WebSphere-Dir>/AppServer/lib/ws-config-common.jar"
/<WebSphere-Dir>/AppServer/lib/wsexception.jar"
4). Run the Java program e.g.
java -classpath <classpath> com.anyname.pmr.pmi.PMR00000
<WASHost> <WASPort>
5). The output should be like (reduced the output for
clarity): -
Processing webAppModule
CountStatisticImpl: id=2 startTime=1134553580707 count=76
CountStatisticImpl: id=11 startTime=1134553580707 count=0
CountStatisticImpl: id=1 startTime=1134553580707 count=162
.
Processing webAppModule
CountStatisticImpl: id=2 startTime=1134553580707 count=76
CountStatisticImpl: id=11 startTime=1134553580707 count=0
CountStatisticImpl: id=11 startTime=1134553580707 count=0
CountStatisticImpl: id=1 startTime=1134553580707 count=162
.
Processing webAppModule
CountStatisticImpl: id=2 startTime=1134553580707 count=76
CountStatisticImpl: id=11 startTime=1134553580707 count=0
CountStatisticImpl: id=11 startTime=1134553580707 count=0
CountStatisticImpl: id=1 startTime=1134553580707 count=162
Note that on the first sample, statistic 11 is returned once.
On the second and third samples (which are updates) statistic
11 is duplicated. Id 11 is the total number of requests
returned from the WebApp module (as an example). If make
some requests to one of the sample apps while this test is
running, only one of the id=11 lines will be updated. This can
lead to client PMI applications reading the wrong results.
Traced the problem down into the WAS code. I believe the
problem lies in
com.ibm.websphere.pmi.stat.StatsImpl.updateMembers().
Local fix
Candidate to be fixed in next release.
Problem summary
****************************************************************
* USERS AFFECTED: Websphere Application Server users *
* developing their own performance monitoring *
* client application. *
****************************************************************
* PROBLEM DESCRIPTION: In some instances, the statistic sets *
* being captured by the pmi client is *
* creating duplicate entries for some *
* of the statistics. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
In some instances, the statistic sets being captured by the
pmi client is creating duplicate entries for some of the
statistics.
The StatsImpl class contains an updateMembers method. This
method expcted the stats collection being passed in to be
sorted. In some instances, this was not the case.
Problem conclusion
The algorithim has been changed to no longer expect a sorted
collection.
The fix for this APAR is currently targeted for inclusion
in cumulative fixes 5.02.16 and 5.1.1.9 and fixpack 6.0.2.7.
Please refer to the recommended updates page for delivery
information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix Comments
APAR information |
APAR number |
PK16887 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
10A |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2005-12-16 |
Closed date |
2006-01-05 |
Last modified date |
2006-01-05 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
|
Fix information |
Fixed component name |
WAS BASE 5.0 |
Fixed component ID |
5630A3600 |
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|