ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-threads
tcl-threads
[Tcl-Threads] thread::transfer and memory leak
by Oleg Derevenetz other posts by this author
Nov 25 2006 11:44AM messages near this date
| Re: [Tcl-Threads] thread::transfer and memory leak
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 ?

--
Oleg Derevenetz <oleg@[...].ru>  OOD3-RIPE
Phone: +7 4732 531789
Fax:   +7 4732 531415         http://www.vsi.ru
CenterTelecom Voronezh ISP    http://isp.vsi.ru


-------------------------------------------------------------------------
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved