Re: [Tcl-Threads] thread::transfer and memory leak
by Jeff Hobbs other posts by this author
Nov 27 2006 3:44PM messages near this date
[Tcl-Threads] thread::transfer and memory leak
|
[Tcl-Threads] tcl threads
Oleg Derevenetz wrote:
> I am developing project using Tcl + Thread (BitTorrent tracker). At first I
> tried to use model where main thread after accepting new connection (using
> socket -server) transfers connection socket to free thread using
> thread::transfer. But testing of this model reveals slow memory leak (about
> 1Mb/minute with requests rate about 100 req/sec). Using Tcl memory debugging
> (Tcl and Thread built with --enable-symbols=mem) and memory command I found
> that memory leaks after each thread::transfer call. This observes on latest
> Tcl/Threads versions as well (tcl8.4.14 and thread2.6.5).
>
> Is this a known issue ? Is thread::transfer requires some extra dealing with
> transferred filedescriptors before or after transfer ?
You are making sure to close the connections made, right? Do you have any
more info from your tracing, or perhaps a code snippet (small) to reproduce?
Also, is this unix, Windows or OS X?
Jeff Hobbs, The Tcl Guy, http://www.ActiveState.com/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-Threads mailing list
Tcl-Threads@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-threads
Thread:
Oleg Derevenetz
Jeff Hobbs
|