Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 39dd9c7b76dd1ef9f481c63aea3177879441bc60
Ticket: 1913398fffffffffffffffffffffffffffffffff
Dumping to File is Leaking Memory?
User & Date: ctasada on 2008-03-26 21:42:41
Changes

  1. icomment:
    
    
    File Added - 271946: memleak.tcl
    
    Logged In: YES 
    user_id=340696
    Originator: YES
    
    Hi Andreas,
    
    In your first reply you said 
    
    "in your actual server,do you have it growing with every dbsave ? if yes I
    would assume that your are somewhere holding on to the old lists and thus
    their memory is not released, i.e. I assume that their ref count never goes
    to zero."
    
    I think I found the "problem" using Threads. In our real server we use Threads in an intensive way. We almost don't use thread shared variables because we known by experience that are really slow for big variables, so everytime that we need to work with variables in threads, to read or modify them, we use the 'set' command.
    
    Attached we can find a new modification of the script were we can see that the memory keeps increasing. In the example I've tried doing the 'set' directly and with a proc, with no difference. In our system it's worse since we have multiple threads.
    
    Is something wrong in the way that I'm using the Threads? If so, please, how should I do it?
    
    Thanks.
    File Added: memleak.tcl
    
    
  2. login: "ctasada"
  3. mimetype: "text/plain"
  4. username: "ctasada"