Export (0) Print
Expand All

How and When to Clear the Cache

 

In System Center 2012 – Operations Manager, when troubleshooting an issue with the Operations console or with an agent, you may see recommendations to “clear the cache”. (For example, see the Knowledge Base article Troubleshooting gray agent state.) The following table explains how and when to clear the console cache or agent cache.

Cache

How to clear

When

Results

Operations console

Open the Operations console with the /clearcache parameter.

"C:\Program Files\System Center Operations Manager 2012\Console\Microsoft.EnterpriseManagement.Monitoring.Console.exe" /clearcache

Use this method to open the Operations console if you experience errors trying to retrieve data in views, such as ObjectNotFoundExceptions, or when the cache file grows too large and you want to reduce its size on disk.

Opening the Operations console with /clearcache deletes the following file:

%systemdrive%\Users\username\AppData\Local\Microsoft\Microsoft.EnterpriseManagement.Monitoring.Console\momcache.mdb

Health service on agent-managed computer

  1. In the Monitoring workspace, expand Operations Manager and then expand Agent Details.

  2. Click Agent Health State.

  3. In Agent State, click an agent.

  4. In the Tasks pane, click Flush Health Service State and Cache.

This should be the final step when troubleshooting issues with the agent, before uninstalling and reinstalling the agent.

Clearing the agent cache can cause data loss of monitoring data from that system. 

  1. Stops the System Center Management service.

  2. Deletes the health service store files.

  3. Resets the state of the agent, including all rules, monitors, outgoing data, and cached management packs.

  4. Starts the System Center Management service.

When the service restarts, the agent requests configuration from the management server.

System_CAPS_noteNote

Because this task deletes the cached data in the health service store files, including the record of this task itself, no task status will be reported on completion of the task.

Health service on management server

  1. In the Monitoring workspace, expand Operations Manager and then expand Management Server.

  2. Click Management Servers State.

  3. In Management Server State, click a management server.

  4. In the Tasks pane, click Flush Health Service State and Cache.

Run this task on a management server when the management server is not functional, a restart has not fixed the problem, and you have exhausted other troubleshooting options.

Clearing the agent cache can cause data loss of monitoring data from agents to the management server. 

  1. Stops the System Center Management service.

  2. Deletes the health service store files.

  3. Resets the state of the agent, including all rules, monitors, outgoing data, and cached management packs.

  4. Starts the System Center Management service.

System_CAPS_noteNote

Because this task deletes the cached data in the health service store files, including the record of this task itself, no task status will be reported on completion of the task.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft