--- title: High Memory Usage While Rebuilding Indexes slug: '2309' canonical_url: https://docs.coveo.com/en/2309/ collection: coveo-for-sitecore-v5 source_format: adoc --- # High Memory Usage While Rebuilding Indexes ## Symptoms When attempting to rebuild the Coveo indexes, the Sitecore instance uses all the available memory. The IIS process then restarts and the rebuild can't complete. ## Cause When enabled, the `Caching.DisableCacheSizeLimits` setting unlocks the memory limit that the Sitecore caches can use. ## Resolution Set the value of the `Caching.DisableCacheSizeLimits` setting to `false`. You can use the `\https:///sitecore/admin/cache.aspx` page to monitor the amount of memory used by each of the Sitecore caches. A good place to start is to tune the database caches: . Open the `\App_Config\Sitecore.config` file in a text editor. . Find the database configuration. ```xml $(id) ... ``` . Inside the database configuration, you will find a `` element. You can then adjust the cache size to suit your needs. ```xml 100MB 50MB 2500KB 50MB 2500KB ``` . Test run your site and look at the `cache.aspx` page to see which caches are underused and which are overused. Tweak values as necessary.