Memory Leak Testing Suggestions?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Memory Leak Testing Suggestions?

  • Creator
    Topic
  • #52572
    Derek Stukey
    Participant

      Hi All,

      A few months back we discovered that one of our processes was crashing due to a suspected memory leak.  I have been unable to confirm the actual cause of the leak.

      When the issue first arose, I spoke with a support tech at Healthvision/Lawson.  He recommended that I run “top | grep ” to see if the memory was running too low/high over time.  I monitored this for several weeks and saw a consistent pattern of a growing process SIZE and a decreasing Resident Memory.  When the Resident Memory gets below 32M, the process crashes.

      So, having not tested for a memory leak before (in Cloverleaf), I started by running every ADT message type through all of the tcl scripts used in the process via the Testing Tool (TPS tab).  This did not reveal any issues.

      I then ran the ADT message samples through the Testing Tool (XLT tab) for every translation used in the process.  This yielded no useful results.

      I then ran the ADT message samples through the Testing Tool (Routes tab).  This also yielded no useful results.

      Please note that I have had the Leak Detection checkbox marked through each test.

      I have a few more testing options to try, but I am wondering if I am doing this correctly?  Is there a better way to find a memory leak if one exists?

      Any help would be appreciated!

      Thanks,

      Derek Stukey

    Viewing 1 reply thread
    • Author
      Replies
      • #74727
        Jim Kosloskey
        Participant

          Derek,

          When you stop you pocesses, the engine will do a leaked handle check and report back in the process log.

          Look in there to see if the engine detected any leaked handles – these are commonly the cause of memory leaks. The log information will give some clues as to the issue as well.

          Typically this will be some Tcl code you are using.

          I rarely use the Tcl testing tool so I cannot attest to its ability to detect leaks.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #74728
          Derek Stukey
          Participant

            Hi Jim,

            Thanks for the input!  Are there any key statements I should be searching for, related to the Memory Leak statements?

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.