100% CPU Problem

Jean-Sebastien Morisset <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi everyone,

I have a problem with Net-SNMPd v5.3.2 on a Solaris 10 x86 server. I
tried a bunch of different versions, and still get the same problem --
after a day or so, it starts taking 100% of 1 CPU. When I truss the
process, I get this:

ioctl(16, I_FLUSH, FLUSHRW)                     = 0
putmsg(16, 0x08046C0C, 0x00000000, 0)           = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 2
ioctl(16, I_FLUSH, FLUSHRW)                     = 0
putmsg(16, 0x08046C0C, 0x00000000, 0)           = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 0
getmsg(16, 0x08046C0C, 0x00000000, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 2
getmsg(16, 0x00000000, 0x08046C0C, 0x08046C84)  = 2
etc., etc., etc.

lsof shows me this for the snmpd process:

snmpd      2735       root  cwd   VDIR             33,320        512 2 /
snmpd      2735       root  txt   VREG             33,320      55756 195057 / (/dev/dsk/c2t0d0s0)
snmpd      2735       root  txt   VREG             33,320      53392 9284 /lib/nss_files.so.1
snmpd      2735       root  txt   VREG             33,320     220032 195439 /usr/local/lib/libgcc_s.so.1
snmpd      2735       root  txt   VREG             33,320    1048720 8328 /usr/lib/libc/libc_hwcap2.so.1
snmpd      2735       root  txt   VREG             33,320     125596 9223 /lib/libadm.so.1
snmpd      2735       root  txt   VREG             33,320      82160 9269 /lib/libsocket.so.1
snmpd      2735       root  txt   VREG             33,320     715320 9251 /lib/libnsl.so.1
snmpd      2735       root  txt   VREG             33,320     337804 8515 /lib/libm.so.2
snmpd      2735       root  txt   VREG             33,320     135108 9227 /lib/libelf.so.1
snmpd      2735       root  txt   VREG             33,320      10604 9249 /lib/libkstat.so.1
snmpd      2735       root  txt   VREG             33,320    1393520 198149 / (/dev/dsk/c2t0d0s0)
snmpd      2735       root  txt   VREG             33,320      36316 8356 /usr/lib/libkvm.so.1
snmpd      2735       root  txt   VREG             33,320       6420 8407 /lib/libdl.so.1
snmpd      2735       root  txt   VREG             33,320    1323924 194191 / (/dev/dsk/c2t0d0s0)
snmpd      2735       root  txt   VREG             33,320     494720 194173 / (/dev/dsk/c2t0d0s0)
snmpd      2735       root  txt   VREG             33,320     539028 195072 / (/dev/dsk/c2t0d0s0)
snmpd      2735       root  txt   VREG             33,320    1753308 194627 / (/dev/dsk/c2t0d0s0)
snmpd      2735       root  txt   VREG             33,320     213204 8342 /lib/ld.so.1
snmpd      2735       root    0u  VCHR               13,2 6815752 /devices/pseudo/mm@0:null
snmpd      2735       root    1u  VCHR               13,2 6815752 /devices/pseudo/mm@0:null
snmpd      2735       root    2u  VCHR               13,2 6815752 /devices/pseudo/mm@0:null
snmpd      2735       root    3w  VREG             33,320       7442 189560 /var/log/snmpd.log
snmpd      2735       root    4u  FIFO 0xffffffff997b4ba0        0t1 24665851 (fifofs) PIPE->0xffffffff997b4c30
snmpd      2735       root    5u  FIFO 0xffffffff997b4c30        0t1 24665851 (fifofs) PIPE->0xffffffff997b4ba0
snmpd      2735       root    6r  VCHR               90,0 47185924 /devices/pseudo/kstat@0:kstat
snmpd      2735       root    7r  VCHR               90,0 47185924 /devices/pseudo/kstat@0:kstat
snmpd      2735       root    8u  FIFO 0xfffffe8a0432d2c0        0t1 24665852 (fifofs) PIPE->0xfffffe8a0432d350
snmpd      2735       root    9u  FIFO 0xfffffe8a0432d350        0t1 24665852 (fifofs) PIPE->0xfffffe8a0432d2c0
snmpd      2735       root   10u  IPv4 0xfffffe89fdedd400        0t0 UDP *:snmp
snmpd      2735       root   11r  DOOR                           0t0 47 /var/run/name_service_door (door to nscd[1084]) (FA:->0xffffffff9912be00)
snmpd      2735       root   12u  IPv4 0xfffffe89fde89200        0t0 UDP *:56621
snmpd      2735       root   13u  IPv4 0xfffffe89fde8f800        0t0 UDP *:56622
snmpd      2735       root   14u  IPv4 0xffffffff99367c00        0t0 UDP *:56623
snmpd      2735       root   15r  VREG              273,1        705 2 /etc/mnttab
snmpd      2735       root   16u  VCHR             44,212 23068676 /devices/pseudo/arp@0:arp->udp->tcp->arp->ip

What do you make of this?

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <[email protected]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.