{"id":15,"date":"2007-04-22T18:34:50","date_gmt":"2007-04-22T23:34:50","guid":{"rendered":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/?p=15"},"modified":"2008-11-08T22:31:28","modified_gmt":"2008-11-09T03:31:28","slug":"ssas-database-processing-sometimes-gets-stuck","status":"publish","type":"post","link":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/15_ssas-database-processing-sometimes-gets-stuck","title":{"rendered":"SSAS database processing sometimes gets stuck"},"content":{"rendered":"<p>Last\u00a0week I had time\u00a0to test if SP2 fixed SSAS database processing problem. On the databases that had a lot of partitions processing task sometimes would get &#8220;stuck&#8221; &#8211; there would be no CPU activity and processing would never get completed. Unfortunatelly I have to report that SP2 did not fix this problem &#8211; for me processing routine failed from the first attempt. But the good news is that Microsoft workaround for this problem on SP1 works on SP2. You have to change SSAS server parameter ThreadPool\\Process\\MaxThreads from default value of 64 to 150. I have tested my processing routines with value 150 and so far everything worked as expected.<\/p>\n<p><strong>Note:\u00a0<\/strong><\/p>\n<p><strong>Found blog entry from PSS SQL Server Engineers that describes this problem and how to solve it:<br \/>\n<\/strong><a rel=\"nofollow\" href=\"http:\/\/blogs.msdn.com\/psssql\/archive\/2007\/01\/16\/processing-appears-to-stall-or-become-sluggish-on-multi-processor-machines-running-analysis-services-2005.aspx\"><strong>http:\/\/blogs.msdn.com\/psssql\/archive\/2007\/01\/16\/processing-appears-to-stall-or-become-sluggish-on-multi-processor-machines-running-analysis-services-2005.aspx<\/strong><\/a><\/p>\n<p><strong>Note 2008-Nov-07:<\/strong><\/p>\n<p>I am finding\u00a0this issue on majority of servers I am dealing with. But the number MaxThreds could be different between machines depending on the\u00a0configuration. I found from my experience that value 150 is OK for servers with up to 8 CPU cores. But when server has 16 CPU cores, I had to use value 200. In any way, I recommend that you follow advice from PSS SQL Engineers and sum values of Threads:Processing Pool Idle Threads, Threads:Processing Pool Busy Threads, and Threads:Processing Pool Job Queue Length performance counters and then add 10. You might need to do that a few times, but eventually you will come up with number good for your specific machine. In my experience, after setting new MaxThreds number I had to restart Analsysis Services server, it did not wake up by itself as described in their article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last\u00a0week I had time\u00a0to test if SP2 fixed SSAS database processing problem. On the databases that had a lot of partitions processing task sometimes would get &#8220;stuck&#8221; &#8211; there would be no CPU activity and processing would never get completed. Unfortunatelly I have to report that SP2 did not fix this problem &#8211; for me [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/posts\/15"}],"collection":[{"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":6,"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":108,"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/posts\/15\/revisions\/108"}],"wp:attachment":[{"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ssas-info.com\/VidasMatelisBlog\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}