When the contents remain static, our Support Engineers recommend scanning only once a month or so.Ģ. The frequency and the time of clamscan depends a lot on the server content and type.
![pix4dmapper full cpu usage on step 3 pix4dmapper full cpu usage on step 3](https://support.pix4d.com/hc/article_attachments/115018250603/Output_files_for_processing_steps.png)
To solve the problem, we changed the clamscan to run once at the weekend at the off-peak hours. At that time there were too many website requests on the server. It was scheduled to run every Monday at 9 am server time. We checked the time at which the clamscan was running on the server. Therefore, it is ideal to run the clamscan when the server resource usage is less. When the scan runs simultaneously, it can make all the websites slow. One of the best practices to reduce server usage is to run the scan at off-peak hours.ĭuring peak hours, there will be a high number of visitors to the websites. Let’s take a look at how our Dedicated Engineers solved the Clamscan high CPU usage for the customer with these steps. Till now we saw the importance of Clamscan and why it causes high resource usage on the server. Again depending on the time for scan completion, the server becomes slow too. When the size of the folder goes high, it requires a lot of server resources for the scan process to do all its tasks. Then clamscan takes further action like removing or copying to a separate folder. This involves comparing the file with a virus database. Here, the clamscan process has to read the files and check for infected content. Thus as a part of security measures, it’s a practice to scan all the user directories on the server. As a result, infected files from a user’s computer may get into the server. These folders involve regular updates by users. In any server, the website folders can easily be a source of infected files. Let’s now check on why there is a high CPU usage during a scan. However, in all cases, our Dedicated Engineers recommend verifying the infected files before removing. To check the entire /home directory, the command will be clamscan -r /home This command will move the infected files to the infected directory. This includes moving the infected files to a separate directory, removing files, etc.įor instance, to scan the home directory of a user on the server, we use clamscan -r -move=/home/USER/infected /home/USER Fortunately, it comes with several automated actions on the infected files. That’s where Clamscan helps.Ĭlamscan scans the files and folders for viruses. The servers connected to the internet are always prone to virus attacks. we’ll see how our Dedicated Engineers solve Clamscan high CPU usage for the customer in 3 simple steps. However, at times, the scan process consumes all of the server resources and make the entire server slow.
![pix4dmapper full cpu usage on step 3 pix4dmapper full cpu usage on step 3](https://aws1.discourse-cdn.com/pix4d/optimized/2X/d/d36a5a212a1e947751c3e983e58596b9433214d5_2_690x326.jpeg)
That was a recent request in our Server Management Services HelpDesk.Ĭlamscan is a tool that scans files and folders in the server for viruses. Clamscan high CPU usage is affecting my server performance and user experience.