SharePoint 2010 – Object Cache Super User Not Configured


Do you see the following warning in the Windows Application log on your SharePoint 2010 servers:

Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unnecessary system resources.

Here’s a screen grab from the Application log to illustrate:

sharepoint-2010-object-cache-super-user-warning

Then here are the steps to resolve and banish the above warning:

First, create the user accounts by using Central Administration

  1. Verify that you have the following administrative credentials:
    • To create the user accounts in Central Administration, you must be a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration Web site.
  2. On the Central Administration Web site, in the Application Management section, click Manage web applications.
  3. Click the name of the Web application that you want to configure.
  4. On the Web Applications tab, in the Policy group, click User Policy.
  5. In the Policy for Web Application window, click Add Users.
  6. From the Zones list, select All zones, and then click Next.
  7. In the Users box, type the user name for the Super User account.
  8. Click the Check Names icon to ensure that the account name can be resolved by the authentication providers on the application server.
  9. In the Choose Permissions section, check the Full Control – Has full control box.
  10. Click Finish.
  11. Repeat Steps 5 – 8 for the Super Reader account.
  12. In the Choose Permissions section, check the Full Read – Has full read-only access box.
  13. Click Finish.
  14. Make note of how the names for the Object Cache Super Reader and Object Cache Super User accounts are displayed in the User Name column. The displayed strings will be different depending on whether you are using claims authentication for the Web application.

Then, add the user accounts to the Web application by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
  2. Copy the following code and paste it into a text editor, such as Notepad:
    $wa = Get-SPWebApplication -Identity “”
    $wa.Properties[“portalsuperuseraccount”] = “<SuperUser>”
    $wa.Properties[“portalsuperreaderaccount”] = “<SuperReader>”
    $wa.Update()
  3. Replace the following placeholders with values:
    • <WebApplication> is the name of the Web application to which the accounts will be added.
    • <SuperUser> is the account to use for the Super User account as you saw it displayed in the User Column field mentioned in Step 14 of the previous procedure.
    • <SuperReader> is account to use for the Super Reader account as you saw it displayed in the User Column field mentioned in Step 14 of the previous procedure.
  4. Save the file, naming it SetUsers.ps1
    You can use a different file name, but you must save the file ANSI-encoded as a text file whose extension is .ps1.
  5. Close the text editor.
  6. On the Start menu, click All Programs.
  7. Click Microsoft SharePoint 2010 Products and then SharePoint 2010 Management Shell.
  8. Change to the directory where you saved the file.
  9. At the Windows PowerShell command prompt, type the following command: ./SetUsers.ps1
  10. Restart Internet Information Services (IIS) via a command prompt (or IIS management console):
    C:\> iisreset /noforce
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s