From: Donal K. F. <don...@ma...> - 2008-11-18 20:43:18
|
sub...@co... wrote: > I am working for Convergys and we are using TCL/TL and expect in our > scripts to automate the FTP operations. We are facing memory growth > issues while using the FTP related instructions like 'spawn', 'send', > 'user', 'dir' etc., of TCL/TK and expect. We are seeing that while using > these instructions the heap memory is growing by 8KB exactly for each of > these instructions. > > While opening the FTP connection we are using 'spawn <ip address>' by > which the heap increased by 8KB and while using 'user <user>/<pwd>' the > heap increased by 8KB etc., When we close the ftp connection using 'send > quit' or 'send bye' instructions I support the memory should be > releaseed releated to the FTP session, but this is not the case with it. > The heap memory is still showing the grown memory. > > Pls. advice how to deal with the current situation. I advise that you would be far better off asking this question on the newsgroup comp.lang.tcl which handles questions on usage of Tcl and its extensions (e.g. Expect) rather than on this mailing list which is exclusively for development *of* Tcl and Tk themselves. (No, I don't know enough about the guts of what goes in Expect to be able to advise how to proceed without spending more time on it than I can afford. Sorry about that.) Note that there are many people on comp.lang.tcl who have a good history at helping with Expect problems; it is an efficient route to getting an answer. Donal. |