Troubleshooting Slow Collection Evaluation in SCCM 2012, Part 3 (AKA When Collections Loiter)

Collections are a critical part of SCCM 2012. They factor into almost everything from deployments to client settings, to… everything! It just so happens that collections are a unique breed of things that are easy to understand but difficult to master.

 

In part 1 of this series, Troubleshooting Slow Collection Evaluation in SCCM 2012 (AKA Laggy Collections), we discussed 3 issues you may see that impact the performance of your collections and how to resolve them. If you missed part 1, you can read it here.

 

Then, in part 2 of this series, Troubleshooting Slow Collection Evaluation in SCCM 2012 (AKA Rooting Out Issues With Collections), we looked under the hood with SQL/PowerShell code on how to identify the issues like missing direct memberships, how to identify which limiting collection is preventing a client from showing in your collection,  and how to find a “reverse limiting collection update train” (if you are wondering what in the world that is, read part two here).

 

For our third session on collection update issues, we are going to look at a common issue – collection update times.

 

Identifying Update Types for Collections

In SCCM 2012 all collections have one of the following types of update schedules: None, Incremental, Scheduled, or Incremental & Scheduled.

 

Incremental collections update on a interval, that is configured in the Administration workspace in the Admin console.  I’ve seen values for this as low as 5 minutes to 2 hours.   Whatever the interval is, EVERY incremental collections does an update at once every x (whatever your value is) minutes.  In a site with low resources, or a large number of incremental collections, this can cause havoc and result in collections taking a long time to update.  Microsoft recommends no more than 200 incremental collections as a general rule.

 

To keep yourself from looking at hundreds of collections you can run the following query against your SCCM Site Database:

You should get something similar to the following:

 

If you have more than 200 Incremental or Scheduled and Incremental added together, you need to work to reduce your number of incremental collections.

 

To find out which collections are which, run this:

This will list out all your collections, with the refresh type.

Identifying Collection Schedule Clustering

Another issue you may see is where many collections are updating at the same time.  In this case, it is useful to be able to determine the peak times for collection updates to see how bad it truly is.

 

This is when you wish you had a chart just like this one:

This chart shows the estimated count of collection updates over a week by hour.  Both Scheduled and Incremental are broken out separately.

 

I created it using a PowerShell script that I will share with you at the end of this post.  The script reads in all collections for a site, then predicts all the times the collections will update based on their collection schedule type and their last update time.  The estimate is done for 7 days and the collections are grouped by hour.

 

The script dumps the data into two csv files, one for scheduled collections, and the other for incremental collections.  I took the two CSV files and used Excel magic to create a nice clear graph so I could visualize my data.  As you can see, things are pretty even, but there are a few spikes.

 

If you are wondering how I did this, or want to try it for yourself, grab the script and give it a try below. Let me know if you find any issues.

 

 

 

That concludes this 3-part series on troubleshooting slow collection evaluation in SCCM 2012! Still not clear on how to resolve these issues? I’m happy to talk with you directly. Contact Model to set up some time to chat and don’t hesitate to check out our services for a better idea of how we can help you!

 

 

By |2019-01-25T08:33:30+00:00March 28th, 2016|PowerShell, SCCM, Uncategorized|0 Comments

About the Author:

steve bowman

Model Technology

Let us help you get your end point and data center strategy on cruise control!  Ask about our Calibration Assessment.

CONTACT US

  • 12125 Woodcrest Executive Drive, Ste. 204 Creve Coeur, MO 63141
  • (314) 254-4138
  • sales@model-technology.com

RECENT TWEETS