Hello All,
This write up is an extremely simplified guide on how we can use basic configuration options available to troubleshoot and optimize OAS (On Access Scan) in ENS.
For a complete outlook on ENS OAS and its working please refer here:
Firstly, On access scan is all about scan on 2 specific actions performed on disk, namely Read and Write.
Any process that runs on your machine is subject to On Access Scan when it performs any of the above 2 actions on the disk unless the process is excluded.
There are 2 ways to configure OAS process settings:
Here is a KBA that is going to talk in depth of what is scanning profile, how the exclusions for processes:
https://kc.mcafee.com/corporate/index?page=content&id=KB88595
You will find below very simple and easy steps to isolate and/or troubleshoot OAS related issues, especially performance issues!
Typical issues faced with OAS:
The process that takes care of OAS is mcshield.exe. When this process consumes HIGH CPU for a longer duration, It is first very important to check if this is indeed OAS consuming high CPU or if it is ODS.
So, please look for any running scans on the endpoint and if you do not find any scans running on the machine (You can open the local ENS console and check under "Scan System" button to see if any scans are currently running or open ODS log file "OnDemandScan_Activity" under C:\ProgramData\McAfee\Endpoint Security\Logs to look for any actively running on demand scan.
Once you have confirmed that there are no active scans, we can be sure that the High CPU usage from mcshield.exe is by OAS.
In order to resolve High CPU usage by OAS, we need to understand what is causing it. On Access Scanner consumes more resources only when the machine is running an application/program that is requesting more resources or is performing a lot of activities that demands us to use the scanner more!
Trellix has provided a very useful tool called McAfee profiler that hooks on to our scanner process, looks around for what is being scanned by us and gives you a very simplified report of what process and file activities are being scanned by us.
Link to download tool: https://support.mcafee.com/webcenter/portal/supportportal/pages_tools/toolsMcAfeeProfiler
More details on the tool: https://kc.mcafee.com/corporate/index?page=content&id=KB69683
Steps to follow here:
As a best practice, collect a list of commonly used applications in your organization and get their respective vendor recommendations for exclusions and ensure those exclusions are added to your OAS policies as needed. To help you with some well-known vendor recommendations, please find our master KBA on the same:
https://kc.mcafee.com/corporate/index?page=content&id=KB66909
Declaring processes as low risk will ensure that the Reads and Writes they perform on the disk is being excluded by OAS from scanning, thereby reducing CPU utilization from our end.
More On Access Scan related best practices can be found here:
https://kc.mcafee.com/corporate/index?page=content&id=KB88205#onaccess
Sincerely hope this helps! Happy Troubleshooting!
Corporate Headquarters
6220 America Center Drive
San Jose, CA 95002 USA