How Many CPU and Memory Resources Are Occupied by the Agent When It Performs Scans?
HSS uses lightweight agents, which occupy only a few resources and do not affect your services.
The CPU and memory usage is as follows.
Maximum CPU Usage
A running agent occupies a maximum of 20% of a vCPU. The actual usage depends on your server specifications. For details, see Resource Usage of Different Specifications While the Agent Is Running.
If the CPU usage exceeds 20% of a vCPU, the agent will automatically reduce CPU usage, spending more time on scans. This does not affect your services. If the CPU usage exceeds 25% of a vCPU, the agent will be automatically restarted.
- The agent is scheduled to scan your servers from 00:00 to 04:00 every day. It does not affect the normal running of the server system.
- If an agent is performing a virus scan task, the virus scan program occupies an extra part of the CPU. The CPU usage cannot exceed 30% of the multi-core CPU. For details about virus scan, see Virus Scan.
Peak Memory Usage
A running agent occupies about 500 MB memory. If the agent memory usage exceeds the maximum memory limit 500 MB, the agent will be automatically restarted within 5 minutes.
If an agent is performing a virus scan task, the average memory usage is 800 MB. For details about virus scan, see Virus Scan.
- No Load: All protection functions of the agent are disabled. You can upgrade or uninstall the agent on the console.
- Silent: All protection functions of the agent are disabled. You cannot upgrade or uninstall the agent on the console.
You can view the run_mode field in the conf/framework.conf file to check the agent background status.
You can perform the following operations to restore the agent to the normal state:
If you have enabled the self-protection policy, disable it before performing the following operations. For details, see Disabling HSS Self-Protection.
- (Optional) Expand the server capacity.
Perform this operation only when the available memory of the server is less than 50 MB.
- Modify the conf/framework.conf file in the agent installation directory and change the mode after the colon (:) of run_mode to normal.
- Perform the following operations to delete the file that records the number of restart times.
- Linux: Run the rm -f /usr/local/hostguard/run/restart.conf command.
- Windows: Find C:\Program Files\HostGuard\run\restart.conf and delete it.
- Perform the following operations to restart the agent.
- Linux: Run the /etc/init.d/hostguard restart command.
- Windows:
- The agent version is 4.0.17 or earlier.
- Log in to the server as user administrator.
- Open the Windows Task Manager, choose Services.
- Right-click Hostwatch and choose Stop. After the status changes to Stopped, go to Step 4.
- Right-click Hostguard in and choose Stop.
- Right-click Hostwatch and choose Start.
After Hostwatch is started, Hostguard is automatically started.
- The agent version is 4.0.18 or later.
- Log in to the server as user administrator.
- Open the command-line interface (CLI). Run the following commands in sequence to stop the service:
sc control hostguard 198
As shown in the Figure 1, the sp_state.conf file is not generated on the server with self-protection enabled.
- Open the Windows Task Manager, choose Services.
- Right-click Hostwatch and choose Start.
After Hostwatch is started, Hostguard is automatically started.
- The agent version is 4.0.17 or earlier.
Resource Usage of Different Specifications While the Agent Is Running
The following table describes the CPU and memory usage of different specifications when the agent is running.
vCPUs |
Max. CPU Usage |
Max. CPU Usage During Virus Scan |
Max. Memory Usage |
Memory Usage During Virus Scan (Average Value) |
---|---|---|---|---|
1 vCPU |
20% |
50% |
500MB |
800MB |
2 vCPUs |
10% |
40% |
500MB |
800MB |
4 vCPUs |
5% |
35% |
500MB |
800MB |
8 vCPUs |
2.5% |
32.5% |
500MB |
800MB |
12 vCPUs |
About 1.67% |
About 31.67% |
500MB |
800MB |
16 vCPUs |
About 1.25% |
About 31.25% |
500MB |
800MB |
24 vCPUs |
About 0.84% |
About 30.84% |
500MB |
800MB |
32 vCPUs |
About 0.63% |
About 30.63% |
500MB |
800MB |
48 vCPUs |
About 0.42% |
About 30.42% |
500MB |
800MB |
60 vCPUs |
About 0.34% |
About 30.34% |
500MB |
800MB |
64 vCPUs |
About 0.32% |
About 30.32% |
500MB |
800MB |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot