Hello,
I am testing a complex J2EE application on WebSphere and UDB V8.2.3.
Because of the compliexity of the application, we have to run it a few
hours to finish all test scenarios.
One of our test objectives is to identify the top 100 most expensive
SQLs (based on CPU time, the total executive time, and the number of
executions). So I am trying different DB2 monitoring tools, but I can't
get the SQLs that I want. Here is what I tried.
1. Use the event monitor to dump out all SQL statements. But the event
monitor report doesn't provide sorting option to list the expensive
SQLs.
2. Use the snapshot to dump out the SQL statements. Again the snapshot
doesn't provide sorting option. More importantly, snapshot can only
dump out the SQLs in the database package cache (PCKCACHESZ). So I
tried to make the package size as big as possible. However, since the
application needs to run a few hours with different SQLs, there is no
guarantee that all SQLs are in the cache.
3. Tried the Activity monitor (Resolving the performance degradation of
an application). I found that it only shows very limited number of
SQLs. Even if I enlarge the PCKCACHESZ, it doesn't show more SQLs.
Any comment are highly appreciated!
Jason Zhang
I am testing a complex J2EE application on WebSphere and UDB V8.2.3.
Because of the compliexity of the application, we have to run it a few
hours to finish all test scenarios.
One of our test objectives is to identify the top 100 most expensive
SQLs (based on CPU time, the total executive time, and the number of
executions). So I am trying different DB2 monitoring tools, but I can't
get the SQLs that I want. Here is what I tried.
1. Use the event monitor to dump out all SQL statements. But the event
monitor report doesn't provide sorting option to list the expensive
SQLs.
2. Use the snapshot to dump out the SQL statements. Again the snapshot
doesn't provide sorting option. More importantly, snapshot can only
dump out the SQLs in the database package cache (PCKCACHESZ). So I
tried to make the package size as big as possible. However, since the
application needs to run a few hours with different SQLs, there is no
guarantee that all SQLs are in the cache.
3. Tried the Activity monitor (Resolving the performance degradation of
an application). I found that it only shows very limited number of
SQLs. Even if I enlarge the PCKCACHESZ, it doesn't show more SQLs.
Any comment are highly appreciated!
Jason Zhang
Comment