> Source: [sk180324](https://support.checkpoint.com/results/sk/sk180324)

# sk180324 - SNMPD occasionally consumes a high CPU level

| Property | Value |
|----------|-------|
| Solution ID | sk180324 |
| Date Created | 2022-11-28 |
| Last Modified | 2023-03-07 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R81.20, R81.10 (EOS), R81 (EOS) |

## Symptoms

- * The output of `top` command shows that the main SNMP thread spikes to 100%.

* Perf top on PID of SNMP shows:  

  `# perf top -p $(pidof snmpd)`

  `9% libOS.so fw_malloc`  
  `9% libdatastruct.so hash_find_hashent `

  <br />

* Changing SNMP mode from VS to default does not resolve the issue.

* Running `strace` on the `snmpd` process shows high amount of read cycles on *$FWDIR/database/netobj_objects.C* across all the configured virtual-systems:

  `open("/opt/CPsuite-R80.40/fw1/CTX/CTX`**<VSID>**`/database/netobj_objects.C", O_RDONLY) = 168 <0.000025>`

  <br />

* The output of "*fw vsx*" commands takes several seconds to be printed to the terminal.
* The output of the "*fw -d vsx* " command shows:   
  `[xxxx] hash_do_resize: Resizing hash from 16384 to 32768 (n_elements=32768)`  
  `
  [xxxx] reference_resolving_hash created`  
  `
  [xxxx] hash_do_resize: Resizing hash from 8192 to 16384 (n_elements=16384)
  `

## Cause

The parent process of SNMPD reads the data of *$FWDIR/database/netobj_objects.C* from all the virtual systems configured and causes it to consume high CPU utilization. Because it is loading more information than it should, the output of the "*fw vsx*" command takes a longer time to be printed.

## Solution

This problem was fixed. The fix is included in:

* [Jumbo Hotfix Accumulator for R81.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/Default.htm) starting from Take 8
* [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 82
* [Jumbo Hotfix Accumulator for R81](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm) starting from Take 79
* [Jumbo Hotfix Accumulator for R80.40](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm) starting from Take 196

If you choose not to upgrade, use the **workaround**:
**Note:** The workaround might disable Check Point's related OIDs.  

Comment out the line "`dlmod nstAgentPluginObject /usr/lib/nstAgentPluginObject.so`" in */etc/snmp/snmpd.conf* file.  

* To comment the line above, run this command:
  * `[Expert@admin]# sed -i 's/dlmod/#dlmod/g' /etc/snmp/snmpd.conf`
* To revert the changes:
  * `[Expert@admin]#sed -i 's/#dlmod/dlmod/g' /etc/snmp/snmpd.conf `

<br />

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
