On 15 Oct, Jim Wilcoxson wrote:
> After running 12 hours, we're seeing 28 nsd threads using 253MB.  Does
> that still seem reasonable for memory usage?  Our baseline for this
> server is 81MB right after the server starts with around 12 threads.
> This server handled 762K requests today, total (less than that in the
> 12 hour period).
>

I don't use Tcl 7.6 with 3.4, I use 8.3.2, but...
There's a big difference between the memory management of 2.3
and 3.x versions.  Some internal data structures are never freed,
they get put into pools when they're done with - so you always see leaks to some 
extent.

Be very careful that you always release db handles.  Also, if adp pages terminate 
unexpectedly,
sometimes global variables don't get deleted as they should - and I have suspected, 
but never
proven, that there may be cases where ns_sets don't get deleted properly either.

If your server gets busy periodically, memory usage will increase, but if you timeout 
the threads
for inactivity, the growth rate slows.  Despite this, restarting periodically is a 
good thing.
We restart our five servers every night.

I have often wondered if the leaks are something to do with the peculiar thread model 
on linux -
where threads and processes are essentially the same thing.  Do people see leaks on 
systems with
lower level threads, e.g. Solaris or HP-UX?  Unfortunately, I don't have such systems 
to experiment
with.

Personally, I'm heartened to hear other people see leaks; I thought it was just our 
strange
set up that was causing it - We use several unusual add ons, e.g. a modified thread 
safe version of
[incr tcl], the tDOM xml parser, extensive auto loading and a modified version of the 
vhost module.

--
--Harry Moreau----------------
[EMAIL PROTECTED]
http://www.online.ie - Ireland's premier portal.

Reply via email to