On 2005.04.06, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
> Now, if you use something like Tcl 8.4.6 or later in your AS instance
> and do this for example, from the nscp session:
>
> time {set t [ns_thread begin "set a 1"]; ns_thread join $t} 10000
>
> and keep an eye on a "top" utility in some other window, you will see AS
> happilly chewing up your memory and growing fatter and fatter.
Yup, this is a "known" problem, which I identified back in Jan 2005:
http://www.mail-archive.com/[email protected]/msg08402.html
I discovered this when working on SF Bug #1082401, which was the
"AOLserver leaks memory when connsperthread != 0" issue.
> To make sure this isn't related to AS directly, I went and did that in
> the plain tclsh with threading extension loaded. Same thing.
Ooh, this is very cool/good news -- that it wasn't AOLserver-specific.
It reaffirms my thought that it is a threaded Tcl problem.
> Then, you go, throw away -DUSE_THREAD_ALLOC=1 from the Tcl makefile,
> recompile again and try again... See? All seems suddenly fine.
This is also great news.
> This will require some time. I have tested Tcl from 8.4.5 until 8.5
> and all seem to exibit the same behaviour. I somehow think that this
> has been always there...
A while ago I corresponded with someone via email who told me that they
found this same "memory leak" or "memory growth" and that going back to
Tcl 8.4.0 (!!!) made the memory growth problem disappear:
>>> I use tcl8.4.0 instead of tcl8.4.7, it's ok, haha......
Zoran, if you have some time, could you try building Tcl 8.4.0 with the
threaded memory allocator and see if your tests show whether the same
memory growth problem exists or not?
If not, test 8.4.1, etc. until you find the point where the leak was
introduced. Then, we can examine the diff between the two versions and
try to identify where the leak was introduced?
If not, I can try to find the time to do this, but I figured I'd offer
the task to you if you could take it on.
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.