Well, it's kind of embarassing, but here's my memory usage (grepped out) - I haven't gotten around to fixing it because the server doesn't really need to be restarted very often, if at all, and it gets hit a little bit. I theorized that the leakage started with a big switch to using nsxml - and I (think) I was able to reduce the memory bleed rate by reducing my use of nsxml (replacing it with normal string operations to "manually" generate XML files). It still runs sharp and fast and good and all - but due to the memory leakage I started to run it under daemontools, so it would restart if it blew up - which doesn't do a particularly good job of restarting the server anyways, but ah well.
output of grepped PS - USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND nobody 27592 0.0 65.2 830656 335332 ? S 2002 0:00 bin/nsd -f -u nobody -t netservos.tcl nobody 27595 0.0 65.2 830656 335332 ? S 2002 0:00 bin/nsd -f -u nobody -t netservos.tcl nobody 27596 0.0 65.2 830656 335332 ? S 2002 0:00 bin/nsd -f -u nobody -t netservos.tcl nobody 27597 0.0 65.2 830656 335332 ? S 2002 0:00 bin/nsd -f -u nobody -t netservos.tcl nobody 27598 0.0 65.2 830656 335332 ? S 2002 3:21 bin/nsd -f -u nobody -t netservos.tcl nobody 27599 0.0 65.2 830656 335332 ? S 2002 3:09 bin/nsd -f -u nobody -t netservos.tcl nobody 27600 0.0 65.2 830656 335332 ? S 2002 2:58 bin/nsd -f -u nobody -t netservos.tcl nobody 27601 0.0 65.2 830656 335332 ? S 2002 4:20 bin/nsd -f -u nobody -t netservos.tcl nobody 27602 0.0 65.2 830656 335332 ? S 2002 3:21 bin/nsd -f -u nobody -t netservos.tcl nobody 27603 0.0 65.2 830656 335332 ? S 2002 3:32 bin/nsd -f -u nobody -t netservos.tcl nobody 27604 0.0 65.2 830656 335332 ? S 2002 2:23 bin/nsd -f -u nobody -t netservos.tcl nobody 27605 0.0 65.2 830656 335332 ? S 2002 2:53 bin/nsd -f -u nobody -t netservos.tcl nobody 27606 0.0 65.2 830656 335332 ? S 2002 2:57 bin/nsd -f -u nobody -t netservos.tcl nobody 27607 0.0 65.2 830656 335332 ? S 2002 3:33 bin/nsd -f -u nobody -t netservos.tcl nobody 27608 0.0 65.2 830656 335332 ? S 2002 3:54 bin/nsd -f -u nobody -t netservos.tcl nobody 27609 0.0 65.2 830656 335332 ? S 2002 2:34 bin/nsd -f -u nobody -t netservos.tcl nobody 27610 0.0 65.2 830656 335332 ? S 2002 3:09 bin/nsd -f -u nobody -t netservos.tcl nobody 27611 0.0 65.2 830656 335332 ? S 2002 2:39 bin/nsd -f -u nobody -t netservos.tcl nobody 27612 0.0 65.2 830656 335332 ? S 2002 3:08 bin/nsd -f -u nobody -t netservos.tcl nobody 27613 0.0 65.2 830656 335332 ? S 2002 2:51 bin/nsd -f -u nobody -t netservos.tcl nobody 27614 0.0 65.2 830656 335332 ? S 2002 2:53 bin/nsd -f -u nobody -t netservos.tcl nobody 27615 0.0 65.2 830656 335332 ? S 2002 3:37 bin/nsd -f -u nobody -t netservos.tcl nobody 27616 0.0 65.2 830656 335332 ? S 2002 3:04 bin/nsd -f -u nobody -t netservos.tcl nobody 27617 0.0 65.2 830656 335332 ? S 2002 2:51 bin/nsd -f -u nobody -t netservos.tcl nobody 27618 0.0 65.2 830656 335332 ? S 2002 3:35 bin/nsd -f -u nobody -t netservos.tcl nobody 27619 0.0 65.2 830656 335332 ? S 2002 3:42 bin/nsd -f -u nobody -t netservos.tcl nobody 27620 0.0 65.2 830656 335332 ? S 2002 3:33 bin/nsd -f -u nobody -t netservos.tcl nobody 27621 0.0 65.2 830656 335332 ? S 2002 3:12 bin/nsd -f -u nobody -t netservos.tcl nobody 27622 0.0 65.2 830656 335332 ? S 2002 2:59 bin/nsd -f -u nobody -t netservos.tcl nobody 27623 0.0 65.2 830656 335332 ? S 2002 3:14 bin/nsd -f -u nobody -t netservos.tcl nobody 27624 0.0 65.2 830656 335332 ? S 2002 2:39 bin/nsd -f -u nobody -t netservos.tcl nobody 27625 0.0 65.2 830656 335332 ? S 2002 3:04 bin/nsd -f -u nobody -t netservos.tcl nobody 27626 0.0 65.2 830656 335332 ? S 2002 3:18 bin/nsd -f -u nobody -t netservos.tcl nobody 27627 0.0 65.2 830656 335332 ? S 2002 3:30 bin/nsd -f -u nobody -t netservos.tcl nobody 27628 0.0 65.2 830656 335332 ? S 2002 3:07 bin/nsd -f -u nobody -t netservos.tcl nobody 27629 0.0 65.2 830656 335332 ? S 2002 3:03 bin/nsd -f -u nobody -t netservos.tcl nobody 27630 0.0 65.2 830656 335332 ? S 2002 3:35 bin/nsd -f -u nobody -t netservos.tcl nobody 27631 0.0 65.2 830656 335332 ? S 2002 2:46 bin/nsd -f -u nobody -t netservos.tcl nobody 27632 0.0 65.2 830656 335332 ? S 2002 3:50 bin/nsd -f -u nobody -t netservos.tcl nobody 27633 0.0 65.2 830656 335332 ? S 2002 2:38 bin/nsd -f -u nobody -t netservos.tcl nobody 27634 0.0 65.2 830656 335332 ? S 2002 3:22 bin/nsd -f -u nobody -t netservos.tcl nobody 27635 0.0 65.2 830656 335332 ? S 2002 3:11 bin/nsd -f -u nobody -t netservos.tcl nobody 27636 0.0 65.2 830656 335332 ? S 2002 2:54 bin/nsd -f -u nobody -t netservos.tcl nobody 27637 0.0 65.2 830656 335332 ? S 2002 2:58 bin/nsd -f -u nobody -t netservos.tcl nobody 27638 0.0 65.2 830656 335332 ? S 2002 3:01 bin/nsd -f -u nobody -t netservos.tcl nobody 27639 0.0 65.2 830656 335332 ? S 2002 3:04 bin/nsd -f -u nobody -t netservos.tcl nobody 27640 0.0 65.2 830656 335332 ? S 2002 3:56 bin/nsd -f -u nobody -t netservos.tcl nobody 27641 0.0 65.2 830656 335332 ? S 2002 3:31 bin/nsd -f -u nobody -t netservos.tcl nobody 27642 0.0 65.2 830656 335332 ? S 2002 3:04 bin/nsd -f -u nobody -t netservos.tcl nobody 27643 0.0 65.2 830656 335332 ? S 2002 3:57 bin/nsd -f -u nobody -t netservos.tcl nobody 27644 0.0 65.2 830656 335332 ? S 2002 2:40 bin/nsd -f -u nobody -t netservos.tcl nobody 27645 0.0 65.2 830656 335332 ? S 2002 3:03 bin/nsd -f -u nobody -t netservos.tcl nobody 27646 0.0 65.2 830656 335332 ? S 2002 3:35 bin/nsd -f -u nobody -t netservos.tcl nobody 27647 0.0 65.2 830656 335332 ? S 2002 2:43 bin/nsd -f -u nobody -t netservos.tcl nobody 27648 0.0 65.2 830656 335332 ? S 2002 3:43 bin/nsd -f -u nobody -t netservos.tcl nobody 27649 0.0 65.2 830656 335332 ? S 2002 3:01 bin/nsd -f -u nobody -t netservos.tcl nobody 27650 0.0 65.2 830656 335332 ? S 2002 2:26 bin/nsd -f -u nobody -t netservos.tcl nobody 27651 0.0 65.2 830656 335332 ? S 2002 3:45 bin/nsd -f -u nobody -t netservos.tcl nobody 27652 0.0 65.2 830656 335332 ? S 2002 3:25 bin/nsd -f -u nobody -t netservos.tcl nobody 27653 0.0 65.2 830656 335332 ? S 2002 3:39 bin/nsd -f -u nobody -t netservos.tcl nobody 27654 0.0 65.2 830656 335332 ? S 2002 3:08 bin/nsd -f -u nobody -t netservos.tcl nobody 27655 0.0 65.2 830656 335332 ? S 2002 2:52 bin/nsd -f -u nobody -t netservos.tcl nobody 27656 0.0 65.2 830656 335332 ? S 2002 3:42 bin/nsd -f -u nobody -t netservos.tcl nobody 27657 0.0 65.2 830656 335332 ? S 2002 3:02 bin/nsd -f -u nobody -t netservos.tcl nobody 27658 0.0 65.2 830656 335332 ? S 2002 3:02 bin/nsd -f -u nobody -t netservos.tcl nobody 27659 0.0 65.2 830656 335332 ? S 2002 3:45 bin/nsd -f -u nobody -t netservos.tcl nobody 27660 0.0 65.2 830656 335332 ? S 2002 3:33 bin/nsd -f -u nobody -t netservos.tcl nobody 27661 0.0 65.2 830656 335332 ? S 2002 2:42 bin/nsd -f -u nobody -t netservos.tcl nobody 27662 0.0 65.2 830656 335332 ? S 2002 3:03 bin/nsd -f -u nobody -t netservos.tcl nobody 27663 0.0 65.2 830656 335332 ? S 2002 2:54 bin/nsd -f -u nobody -t netservos.tcl nobody 27664 0.0 65.2 830656 335332 ? S 2002 3:24 bin/nsd -f -u nobody -t netservos.tcl nobody 27665 0.0 65.2 830656 335332 ? S 2002 3:40 bin/nsd -f -u nobody -t netservos.tcl nobody 27666 0.0 65.2 830656 335332 ? S 2002 3:08 bin/nsd -f -u nobody -t netservos.tcl nobody 27667 0.0 65.2 830656 335332 ? S 2002 2:49 bin/nsd -f -u nobody -t netservos.tcl nobody 27668 0.0 65.2 830656 335332 ? S 2002 3:02 bin/nsd -f -u nobody -t netservos.tcl nobody 27669 0.0 65.2 830656 335332 ? S 2002 3:06 bin/nsd -f -u nobody -t netservos.tcl nobody 27670 0.0 65.2 830656 335332 ? S 2002 2:59 bin/nsd -f -u nobody -t netservos.tcl nobody 27671 0.0 65.2 830656 335332 ? S 2002 3:07 bin/nsd -f -u nobody -t netservos.tcl nobody 27672 0.0 65.2 830656 335332 ? S 2002 3:27 bin/nsd -f -u nobody -t netservos.tcl nobody 27673 0.0 65.2 830656 335332 ? S 2002 3:55 bin/nsd -f -u nobody -t netservos.tcl nobody 27674 0.0 65.2 830656 335332 ? S 2002 3:11 bin/nsd -f -u nobody -t netservos.tcl nobody 27675 0.0 65.2 830656 335332 ? S 2002 3:25 bin/nsd -f -u nobody -t netservos.tcl nobody 27676 0.0 65.2 830656 335332 ? S 2002 3:36 bin/nsd -f -u nobody -t netservos.tcl nobody 27677 0.0 65.2 830656 335332 ? S 2002 3:34 bin/nsd -f -u nobody -t netservos.tcl nobody 27678 0.0 65.2 830656 335332 ? S 2002 3:39 bin/nsd -f -u nobody -t netservos.tcl nobody 27679 0.0 65.2 830656 335332 ? S 2002 3:49 bin/nsd -f -u nobody -t netservos.tcl nobody 27680 0.0 65.2 830656 335332 ? S 2002 3:01 bin/nsd -f -u nobody -t netservos.tcl nobody 27681 0.0 65.2 830656 335332 ? S 2002 3:31 bin/nsd -f -u nobody -t netservos.tcl nobody 27682 0.0 65.2 830656 335332 ? S 2002 3:15 bin/nsd -f -u nobody -t netservos.tcl nobody 27683 0.0 65.2 830656 335332 ? S 2002 2:50 bin/nsd -f -u nobody -t netservos.tcl nobody 27684 0.0 65.2 830656 335332 ? S 2002 3:47 bin/nsd -f -u nobody -t netservos.tcl nobody 27685 0.0 65.2 830656 335332 ? S 2002 4:01 bin/nsd -f -u nobody -t netservos.tcl nobody 27686 0.0 65.2 830656 335332 ? S 2002 2:28 bin/nsd -f -u nobody -t netservos.tcl nobody 27687 0.0 65.2 830656 335332 ? S 2002 3:09 bin/nsd -f -u nobody -t netservos.tcl nobody 27688 0.0 65.2 830656 335332 ? S 2002 3:11 bin/nsd -f -u nobody -t netservos.tcl nobody 27689 0.0 65.2 830656 335332 ? S 2002 2:54 bin/nsd -f -u nobody -t netservos.tcl nobody 27690 0.0 65.2 830656 335332 ? S 2002 3:15 bin/nsd -f -u nobody -t netservos.tcl nobody 27691 0.0 65.2 830656 335332 ? S 2002 3:23 bin/nsd -f -u nobody -t netservos.tcl nobody 27692 0.0 65.2 830656 335332 ? S 2002 3:04 bin/nsd -f -u nobody -t netservos.tcl nobody 27693 0.0 65.2 830656 335332 ? S 2002 3:22 bin/nsd -f -u nobody -t netservos.tcl nobody 27694 0.0 65.2 830656 335332 ? S 2002 3:32 bin/nsd -f -u nobody -t netservos.tcl nobody 27695 0.0 65.2 830656 335332 ? S 2002 3:10 bin/nsd -f -u nobody -t netservos.tcl nobody 27696 0.0 65.2 830656 335332 ? S 2002 2:22 bin/nsd -f -u nobody -t netservos.tcl nobody 27697 0.0 65.2 830656 335332 ? S 2002 3:05 bin/nsd -f -u nobody -t netservos.tcl nobody 27698 0.0 65.2 830656 335332 ? S 2002 0:16 bin/nsd -f -u nobody -t netservos.tcl nobody 27701 0.0 65.2 830656 335332 ? S 2002 0:00 bin/nsd -f -u nobody -t netservos.tcl
