Menu

#1349 5.2.1 Leaks memory on HP-UX 11i

hpux
closed
nobody
agent (1105)
5
2012-11-08
2005-04-22
No

We have noticed some memory leaking in the net-snmp
agent version 5.2.1 on HP-UX 11i machine. Below are
detailed information about our environmnet and how we
found this out:

========================================
OS/Version:
$ uname -a
HP-UX irmeli B.11.11 U 9000/800 883970601 unlimited-
user license

========================================

Compiler:
$ aCC -V
aCC: HP ANSI C++ B3910B A.03.39

========================================
Memory footprint (top) when test started:
? 7214 test 154 20 7016K 1728K sleep 0:00
0.20 0.20 snmpd

Memory footprint (top) when test ended:
? 7214 test 154 20 7208K 1920K sleep 1:45
0.04 0.04 snmpd

========================================

Memory usage statistics using our memory footprint
checking tool:
pid shared_vm shared_ram private_vm private_ram
7214 4980K 2952K 2040K 1728K
7214 4980K 2952K 2056K
1744K after 1,5 hours
7214 4980K 2952K 2072K
1760K after 2,5 hours
7214 4980K 2952K 2088K
1776K after 4,0 hours
7214 4980K 2952K 2104K
1792K after 5,0 hours
7214 4980K 2952K 2120K
1808K after 6,0 hours
7214 4980K 2952K 2136K
1824K after 7,5 hours
7214 4980K 2952K 2152K
1840K after 8,5 hours
7214 4980K 2952K 2168K
1856K after 10,0 hours
7214 4980K 2952K 2184K
1872K after 11,0 hours
7214 4980K 2952K 2200K
1888K after 12,5 hours
7214 4980K 2952K 2216K
1904K after 13,5 hours
7214 4980K 2952K 2232K
1920K after 14,5 hours
========================================
Configuration file "snmpd.conf":
rocommunity public
rwcommunity public

========================================

Source was compiled using following options for
configure script:

./configure --with-cc=aCC --with-libs="-lnm" --with-
cflags="-Wl,+s" --prefix=/opt/net-snmp --without-root-
access --with-persistent-directory="/opt/net-snmp/var" --
with-default-snmp-version="2" --with-logfile="/opt/net-
snmp/logs/net-snmpd.log" --with-sys-location="" --with-
sys-contact="root@localhost" --enable-shared
========================================
Script used for testing:

TestScript.sh
#!/bin/sh
FILENAME="/tmp/testTemp/NetSnmpExec_Log"
i=1
while [ "$i" -ne 0 ]
do
echo $i > $FILENAME
date >> $FILENAME
/opt//net-snmp/bin/./snmpget -cpublic test:161
sysUpTime.0
i=`expr $i + 1`
done

Juuso Ĺberg
<juuso.aberg at="" suomi24.fi="">

Discussion

  • Thomas Anders

    Thomas Anders - 2005-10-05

    Logged In: YES
    user_id=848638

    Can you retest with 5.2.2.pre3, please, and report back to us?

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 180 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.