Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a762a029483e3cd5a26d3716181d3b14cc8816e8
Ticket: 1913398fffffffffffffffffffffffffffffffff
Dumping to File is Leaking Memory?
User & Date: ctasada on 2008-03-13 10:02:33
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi guys,
    
    I'm trying to discover some memory leaking that I've in my application and I came up to the next code (see attached file).
    
    The script creates a random number of global variables and dumps them to a file. Has you can see, after dumping the globals to the file the memory grows and this increment is never completely recovered.
    
    Start - Physical: 14,404 / Virtual: 8,788
    Globals Created - Physical: 82,588 / Virtual: 77,188 > Difference (Physical: 68,184 / Virtual: 68,400)
    DB Saved - Physical: 101,696 / Virtual: 100,436 > Difference (Physical: 19,108 / Virtual: 23,248)
    Modify - Physical: 92,500 / Virtual: 88,612 > Difference (Physical: -9,196 / Virtual: -11,824)
    DB Saved - Physical: 100,264 / Virtual: 101,284 > Difference (Physical: 7,764 / Virtual: 12,672)
    Modify - Physical: 91,060 / Virtual: 86,572 > Difference (Physical: -9,204 / Virtual: -14,712)
    DB Saved - Physical: 100,420 / Virtual: 101,180 > Difference (Physical: 9,360 / Virtual: 14,608)
    Modify - Physical: 93,220 / Virtual: 89,788 > Difference (Physical: -7,200 / Virtual: -11,392)
    DB Saved - Physical: 99,944 / Virtual: 101,248 > Difference (Physical: 6,724 / Virtual: 11,460)
    
    To execute the script in Windows you'll need the pslist.exe from PSTools, in Linux is using the ps command. I think that the ps command works different in OSX, but I haven't tested.
    
    Am I missing some obvious behavior in Tcl? or is really some memory leaking?
    
    Thanks a lot.
    
    
  4. foundin changed to: "obsolete: 8.5.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ctasada"
  10. subsystem changed to: "25. Channel System"
  11. title changed to: "Dumping to File is Leaking Memory?"
  12. type changed to: "Bug"