Translated message

A translation of this page exists in English.

アップグレード後、snmpd が大量のメモリーを使用する

Solution Verified - Updated -

Issue

  • net-snmp-5.7.2-38.el7_6.2 以降にアップグレードすると、snmpd デーモンが大量のメモリーを使用します。スワップスペースの使用量が増加し、場合によっては snmpd デーモンがカーネルの oom-killer を起動します。
  • SNMP プロトコルバージョン 3 (SNMPv3) を使用してデーモンと対話すると、snmpd の メモリー使用量が増加します。
  • ログに以下のようなメッセージが表示されることがあります (行を一部省略しています)。

    Oct  4 08:12:54 example-host snmpd[<pid>]: fork: Cannot allocate memory
    
    Oct  4 08:15:45 example-host kernel: snmpd invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
    Oct  4 08:15:45 example-host kernel: snmpd cpuset=/ mems_allowed=0
    Oct  4 08:15:45 example-host kernel: CPU: 1 PID: <pid> Comm: snmpd Kdump: loaded Not tainted 3.10.0-1062.el7.x86_64 #1
    Oct  4 08:15:45 example-host kernel:  [<ffffffff991bfd74>] oom_kill_process+0x254/0x3e0
    Oct  4 08:15:45 example-host kernel: [ <pid>]     0  <pid>  1263624   179812    2421  1026961             0 snmpd
    Oct  4 08:15:45 example-host kernel: Out of memory: Kill process <pid> (snmpd) score 515 or sacrifice child
    Oct  4 08:15:45 example-host kernel: Killed process <pid> (snmpd), UID 0, total-vm:5054496kB, anon-rss:719248kB, file-rss:0kB, shmem-rss:0kB
    Oct  4 08:15:45 example-host systemd[1]: snmpd.service: main process exited, code=killed, status=9/KILL
    Oct  4 08:15:45 example-host systemd[1]: Unit snmpd.service entered failed state.
    Oct  4 08:15:45 example-host systemd[1]: snmpd.service failed.
    

Environment

  • Red Hat Enterprise Linux 7.6
  • Red Hat Enterprise Linux 7.7
  • net-snmp-5.7.2-38.el7_6.2 以降

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content