25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

Need help?

Our experts have had an average response time of 11.43 minutes in March 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

How to fix high memory usage by Metafile on Windows Server 2008 R2

by | Dec 2, 2020

Struggling to fix high memory usage by Metafile on Windows Server 2008 R2?

At Bobcares we often get requests to fix high memory usage by Metafile on Windows Server 2008 R2 as of our Server Management Services.

Today, let’s take a look at the details of this memory usage issue and some tips to fix it.

 

High RAM Load on Windows Server 2008 R2

Windows Server 2008 R2 is prone to face high RAM load which results in issues with the server and application performance.

From the Task Manager, we can see that physical memory is busy by 95-99%

fix high memory usage by metafile on windows server 2008 r2

And from the Processes tab, we will not be able to find any leaked process with abnormally high memory consumption.

When we sum up the approximate values of memory used by all processes we will not get even 50% of the physical memory we have on our server.

How to find the actual RAM usage?

To get the actual data on RAM usage we can use a small utility – RAMMap.

We have to download the archive containing the tool and run RAMMap.exe with the administrator privileges.

Then from the ‘Use Counts’ tab, we can see that Metafile is using the largest amount of RAM.

fix high memory usage by metafile on windows server 2008 r2

[Need Assistance? We are here for you!]

 

What is a Metafile ?

A metafile is a part of the system cache that contains NTFS metadata. Metafile increases the performance of the file system while accessing it.

NTFS metadata includes the data of MFT (Master File Table). Every time a  file or folder is accessed by the users, a corresponding block of at least 1 KB is created in the metafile.

 

How to Quickly Clean Up metafile?

Windows Server 2008 R2 with too many files will have a large metafile size (NTFS cache)

There are two methods with which we can clean up metafile. Using either of the method will fix high memory usage by Metafile on Windows Server 2008 R2

  1. Using RAMMap tool
  2. Dynamic Cache Service to Manage the File Cache

1. Clearing memory using RAMMap

RAMMap allows to clear the used memory quickly without server restart.

Select Empty -> Empty System Working Set in the menu.

We can see that the size of metafile in the memory reduces, and the percentage of RAM used by CPU drops from 95% to 26%.

 

2. Managing the File Cache with Dynamic Cache Service

This service allows us to manage the parameters of dedicated MFT cache using system APIs.

We need to download DynCache and then copy the file DynCache.exe to %SystemRoot%\System32 folder

Then we need to create DynCache service.

fix high memory usage by metafile on windows server 2008 r2

We can use the following command:

sc create DynCache binpath= %SystemRoot%\System32\DynCache.exe start= auto type= own DisplayName= “Dynamic Cache Service” install DynCache service

After adding the command we need to import DynCache.reg to the registry which ontains default values.
And then we have to change the values of the following register keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DynCache\Parameters

1. MaxSystemCacheMBytes: 4096 (dec) – the maximum cache size(Mb)
2. MinSystemCacheMBytes: 100 (dec) – the minimum cache size (MB)MaxSystemCacheMBytes

We need to keep in mind that DynCache service settings have to be edited according to the RAM size, the server load, required performance, etc.

After the changes are made, we do not need to restart DynCache, since all changes are applied dynamically.

Now we can run the service using this command:

sc start DynCache

After running Dynamic Cache Service we will be able to see that the memory usage in the server has decreased to a normal amount.

[Still facing high memory usage on your server? We are here for you!]

 

Conclusion

In short, we’ve discussed the causes of the issue. Also, we saw two methods that our Support Engineers follow to fix this memory usage issue.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF