{"id":1159,"date":"2006-12-11T12:00:00","date_gmt":"2006-12-11T12:00:00","guid":{"rendered":"http:\/\/orcldoug.com\/blog\/?p=1159"},"modified":"2006-12-11T12:00:00","modified_gmt":"2006-12-11T12:00:00","slug":"a-more-complex-statspack-example-summary","status":"publish","type":"post","link":"http:\/\/orcldoug.com\/blog\/2006\/12\/11\/a-more-complex-statspack-example-summary\/","title":{"rendered":"A More Complex Statspack Example &#8211; Summary"},"content":{"rendered":"<p>\nLooking back at the three blogs (and hopefully the comments, where others have made some very useful contributions), it&#8217;s all quite unsatisfactory, isn&#8217;t it? We haven&#8217;t solved the problem.<br \/>\nAll we&#8217;ve proved is that the tests aren&#8217;t equivalent, although I think<br \/>\nthere&#8217;s value in that negative result because I was asked to investigate &#8216;what is wrong with our environment&#8217;.<\/p>\n<p>One of the problems is that the test runs for between 7 and 12 hours and, viewing a Statspack report covering such long periods, it&#8217;s extremely difficult if not impossible to identify what is definitely a problem. However, it wasn&#8217;t at all difficult to identify that our environment was experiencing more transaction activity, which unearthed the central flaw in the vendor&#8217;s test &#8211; they didn&#8217;t have most of the standard functionality switched on.<\/p>\n<p>My usual approach to identifying performance problems with a business task like this is to trace it using event 10046, level 8 or 12 and that would have provided much more detailed information about the task at hand. <\/p>\n<p>Consider this, though. <\/p>\n<p>Whilst I&#8217;m a fan of session-level tracing, do you think<br \/>\nit would have been easier to identify this problem using event 10046 on<br \/>\nthe session of interest or not? We would have seen what was holding up<br \/>\nthe job by looking at the wait events, but we would have known nothing<br \/>\nabout the <i>cause<\/i>, because that was outside of the session we were looking at. We might have seen the batch job waiting for a resource but our deliberately narrow scope wouldn&#8217;t include the other jobs running on the system. (We could have switched on tracing at the instance level, particularly as these are test environments, but we would have had a ton of output to review &#8211; trust me, I&#8217;ve done it!).<\/p>\n<p>Please don&#8217;t take this as a criticism of session-level tracing, but merely a suggestion that there&#8217;s room for a variety of performance analysis tools which give different views of a problem. <\/p>\n<p>I think it&#8217;s reasonable to describe the instance-wide scope of Statspack as a weakness. I also think it&#8217;s reasonable to describe the instance-wide scope of Statspack as a strength. It depends what you&#8217;re trying to achieve. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Looking back at the three blogs (and hopefully the comments, where others have made some very useful contributions), it&#8217;s all quite unsatisfactory, isn&#8217;t it? We haven&#8217;t solved the problem. All we&#8217;ve proved is that the tests aren&#8217;t equivalent, although I think there&#8217;s value in that negative result because I was asked to investigate &#8216;what is&hellip; <a class=\"more-link\" href=\"http:\/\/orcldoug.com\/blog\/2006\/12\/11\/a-more-complex-statspack-example-summary\/\">Continue reading <span class=\"screen-reader-text\">A More Complex Statspack Example &#8211; Summary<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1159","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1155,"url":"http:\/\/orcldoug.com\/blog\/2006\/12\/06\/a-more-complex-statspack-example-part-1\/","url_meta":{"origin":1159,"position":0},"title":"A More Complex Statspack Example &#8211; Part 1","date":"December 6, 2006","format":false,"excerpt":"Following on from the last Statspack example, up popped an example at work this week of another common reason I use Statspack - comparing the performance of different environments. It's also a nice illustration of some of Statspack's limitations.Because a Statspack report contains a lot of information and this particular\u2026","rel":"","context":"With 8 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1156,"url":"http:\/\/orcldoug.com\/blog\/2006\/12\/07\/a-more-complex-statspack-example-part-2\/","url_meta":{"origin":1159,"position":1},"title":"A More Complex Statspack Example &#8211; Part 2","date":"December 7, 2006","format":false,"excerpt":"So far we're barely into the comparison of the Statspack reports from the two different test environments and they look quite different already.Next up, the Instance Efficiency Percentages. I have to confess that I rarely find these very useful because the numbers are always near 100% on most databases I\u2026","rel":"","context":"With 13 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1428,"url":"http:\/\/orcldoug.com\/blog\/2008\/08\/14\/time-matters-an-infinite-capacity-for-waiting\/","url_meta":{"origin":1159,"position":2},"title":"Time Matters &#8211; An Infinite Capacity for Waiting*","date":"August 14, 2008","format":false,"excerpt":"When I was teaching the 10g Performance class at my last customer site, I remarked that the total number of seconds you see in the \"Top 5 Timed Events\" section of a Statspack or AWR report will often be greater than the total number of seconds between the snapshot intervals.\u2026","rel":"","context":"With 6 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1153,"url":"http:\/\/orcldoug.com\/blog\/2006\/12\/01\/a-small-statspack-success\/","url_meta":{"origin":1159,"position":3},"title":"A Small Statspack Success","date":"December 1, 2006","format":false,"excerpt":"I'll warn you up front that this is going to be spectacularly lacking in detail but it's a simple and true example from the other week of the kind of thing I find Statspack useful for.One of the developers scuttled round to my desk one late shift very concerned about\u2026","rel":"","context":"With 7 comments","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1050,"url":"http:\/\/orcldoug.com\/blog\/2006\/08\/10\/historical-perspective-part-2\/","url_meta":{"origin":1159,"position":4},"title":"Historical Perspective (Part 2)","date":"August 10, 2006","format":false,"excerpt":"Let's look at items 2 and 3 from the list in my previous blog1) You know you have a performance problem and can re-create it by running a specific part of the application, be it a user interaction or batch job.2) You have an intermittent but recurring performance problem which\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1719,"url":"http:\/\/orcldoug.com\/blog\/2014\/07\/24\/recurring-conversations-awr-intervals-part-2\/","url_meta":{"origin":1159,"position":5},"title":"Recurring Conversations: AWR Intervals (Part 2)","date":"July 24, 2014","format":false,"excerpt":"(Reminder, just in case we still need it, that the use of features in this post require Diagnostics Pack license.) Damn me for taking so long to write blog posts these days. By the time I get around to them, certain very knowledgeable people have commented on part 1 and\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/comments?post=1159"}],"version-history":[{"count":0,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/posts\/1159\/revisions"}],"wp:attachment":[{"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/media?parent=1159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/categories?post=1159"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/orcldoug.com\/blog\/wp-json\/wp\/v2\/tags?post=1159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}