[Date Prev][Date Next] [Chronological] [Thread] [Top]

OpenLDAP, overuse of memory?



Hello everyone...

I have a PDC running samba 2.2.8a with OpenLDAP 2.0.27 on the backend.

Our PDC is running great. However, yesterday I logged in to do some basic maintenance when I noticed that it had used a bit more memory than it usually has...

I started doing some searching and could not really find out what the problem was.

What would happen is that I would view top and ps: And in the top window, it seemed that the memory usage would jump up about 8k every 10-15 seconds. Which made me worry abit because I dont want to run out of memory on the server...

Here is some output:


$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1376 484 ? S Aug28 0:04 init
root 2 0.0 0.0 0 0 ? SW Aug28 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SWN Aug28 0:00 [ksoftirqd_CPU0]
root 4 0.0 0.0 0 0 ? SW Aug28 0:00 [kswapd]
root 5 0.0 0.0 0 0 ? SW Aug28 0:00 [kscand]
root 6 0.0 0.0 0 0 ? SW Aug28 0:00 [bdflush]
root 7 0.0 0.0 0 0 ? SW Aug28 0:00 [kupdated]
root 8 0.0 0.0 0 0 ? SW< Aug28 0:00 [mdrecoveryd]
root 14 0.0 0.0 0 0 ? SW Aug28 0:00 [scsi_eh_0]
root 17 0.0 0.0 0 0 ? SW Aug28 0:00 [kjournald]
root 96 0.0 0.0 0 0 ? SW Aug28 0:00 [khubd]
root 190 0.0 0.0 0 0 ? SW Aug28 0:00 [kjournald]
root 191 0.0 0.0 0 0 ? SW Aug28 0:00 [kjournald]
root 192 0.0 0.0 0 0 ? SW Aug28 0:00 [kjournald]
root 193 0.0 0.0 0 0 ? SW Aug28 0:00 [kjournald]
root 541 0.0 0.0 1632 636 ? S Aug28 0:00 syslogd -m 0
root 546 0.0 0.0 1368 440 ? S Aug28 0:00 klogd -x
rpc 566 0.0 0.0 1512 536 ? S Aug28 0:00 [portmap]
ntp 678 0.0 0.0 1892 1888 ? SL Aug28 0:00 [ntpd]
root 755 0.0 0.0 3204 1432 ? S Aug28 0:00 /usr/sbin/sshd
root 789 0.0 0.0 3444 1032 ? S Aug28 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 807 0.0 0.0 2832 720 ? S Aug28 0:00 crond
xfs 857 0.0 0.1 6884 3840 ? S Aug28 0:00 [xfs]
root 876 0.0 0.0 5248 2012 ? S Aug28 0:00 smbd -D
root 881 0.0 0.0 3860 1664 ? S Aug28 0:03 nmbd -D
root 888 0.0 0.0 1344 396 tty1 S Aug28 0:00 /sbin/mingetty tty1
root 1095 0.0 0.1 7268 3076 ? S 03:55 0:00 [smbd]
root 1435 0.0 0.1 7276 3472 ? S 08:36 0:00 [smbd]
root 1436 0.0 0.1 7276 3592 ? S 08:37 0:00 [smbd]
root 1489 0.0 0.0 8064 2488 ? S 08:57 0:00 /usr/sbin/sshd
1001 1491 0.0 0.0 8092 2552 ? R 08:57 0:00 [sshd]
1001 1492 0.0 0.0 4980 2112 pts/0 S 08:57 0:00 -bash
root 1534 0.0 0.0 4680 1764 pts/0 S 08:57 0:00 [su]
root 1535 0.0 0.0 3792 1488 pts/0 S 08:57 0:00 -bash
ldap 1675 0.0 0.1 14672 3320 ? S 09:16 0:00 [slapd]
ldap 1679 0.0 0.1 14672 3320 ? S 09:16 0:00 [slapd]
ldap 1680 0.0 0.1 14672 3320 ? S 09:16 0:00 [slapd]
root 1682 0.0 0.0 5236 1488 pts/0 R 09:16 0:00 ps aux
ldap 1683 0.0 0.1 14672 3320 ? S 09:16 0:00 [slapd]
ldap 1684 0.0 0.1 14672 3320 ? R 09:16 0:00 [slapd]
ldap 1685 0.0 0.1 14672 3320 ? S 09:16 0:00 [slapd]



9:16am up 15:23, 1 user, load average: 0.00, 0.00, 0.00 41 processes: 40 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle Mem: 2572404K av, 349500K used, 2222904K free, 0K shrd, 88784K buff Swap: 2048216K av, 0K used, 2048216K free 50740K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
  857 xfs        9   0  3840 3840  1324 S     0.0  0.1   0:00 xfs
 1436 root       9   0  3592 3592  2472 S     0.0  0.1   0:00 smbd
 1435 root       9   0  3472 3472  2424 S     0.0  0.1   0:00 smbd
 1675 ldap      11   0  3328 3324  2048 S     0.0  0.1   0:00 slapd
 1679 ldap      17   0  3328 3324  2048 S     0.0  0.1   0:00 slapd
 1680 ldap      13   0  3328 3324  2048 S     0.0  0.1   0:00 slapd
 1683 ldap      14   0  3328 3324  2048 S     0.0  0.1   0:00 slapd
 1684 ldap      14   0  3328 3324  2048 S     0.0  0.1   0:00 slapd
 1685 ldap      17   0  3328 3324  2048 S     0.0  0.1   0:00 slapd
 1095 root       9   0  3076 3076  2116 S     0.0  0.1   0:00 smbd
 1491 jwilliam   9   0  2552 2552  2036 S     0.0  0.0   0:00 sshd
 1489 root       9   0  2488 2488  1992 S     0.0  0.0   0:00 sshd
 1492 jwilliam   9   0  2112 2112  1532 S     0.0  0.0   0:00 bash
  876 root       9   0  2012 2012  1332 S     0.0  0.0   0:00 smbd
  678 ntp        9   0  1888 1888  1680 S     0.0  0.0   0:00 ntpd
 1687 root      11   0  1824 1824  1396 R     0.0  0.0   0:00 top
 1534 root       9   0  1764 1764  1340 S     0.0  0.0   0:00 su
  881 root       9   0  1664 1664  1044 S     0.0  0.0   0:03 nmbd
 1535 root      11   0  1488 1488  1092 S     0.0  0.0   0:00 bash
  755 root       9   0  1432 1432  1180 S     0.0  0.0   0:00 sshd
  789 root       9   0  1032 1032   804 S     0.0  0.0   0:00 xinetd
  807 root       9   0   720  720   588 S     0.0  0.0   0:00 crond
  541 root       9   0   636  636   536 S     0.0  0.0   0:00 syslogd
  566 rpc        9   0   536  536   456 S     0.0  0.0   0:00 portmap
    1 root       7   0   484  484   420 S     0.0  0.0   0:04 init
  546 root       9   0   440  440   380 S     0.0  0.0   0:00 klogd
  888 root       9   0   396  396   340 S     0.0  0.0   0:00 mingetty
    2 root       8   0     0    0     0 SW    0.0  0.0   0:00 keventd
    3 root      19  19     0    0     0 SWN   0.0  0.0   0:00 ksoftirqd_CPU0
    4 root       9   0     0    0     0 SW    0.0  0.0   0:00 kswapd
    5 root       9   0     0    0     0 SW    0.0  0.0   0:00 kscand
    6 root       9   0     0    0     0 SW    0.0  0.0   0:00 bdflush
    7 root       9   0     0    0     0 SW    0.0  0.0   0:00 kupdated
    8 root      -1 -20     0    0     0 SW<   0.0  0.0   0:00 mdrecoveryd
   14 root       9   0     0    0     0 SW    0.0  0.0   0:00 scsi_eh_0
   17 root       9   0     0    0     0 SW    0.0  0.0   0:00 kjournald
   96 root       9   0     0    0     0 SW    0.0  0.0   0:00 khubd
  190 root       9   0     0    0     0 SW    0.0  0.0   0:00 kjournald
  191 root       9   0     0    0     0 SW    0.0  0.0   0:00 kjournald
  192 root       9   0     0    0     0 SW    0.0  0.0   0:00 kjournald

I noticed that I had quite a few slapd processes running (Multi-threaded, I know...) anyway, so I stopped LDAP and continued to monitor it and the memory usage seemed to stop...(I set thread 9 in my .conf file)

Is this correct? Is this what it is supposed to use?
Could this be the problem?

Thanks...

Jason