Microsoft KB Archive/182652

From BetaArchive Wiki
Knowledge Base


Memory Leak When Transactional Method Fails Before Connect

Article ID: 182652

Article Last Modified on 3/23/2004



APPLIES TO

  • Microsoft COM Transaction Integrator for CICS and IMS 1.0, when used with:
    • Microsoft SNA Server 4.0



This article was previously published under Q182652

SYMPTOMS

COMTI state machines are not reused if an application method invocation fails before a connection is established. A memory leak can be observed by the use of monitoring techniques. Memory used by Mtx.exe grows by about 6 kilobytes PER METHOD invocation.

NOTE: This leak only happens on transactional calls.

CAUSE

This memory leak can occur when a COMTI application is in the midst of a transaction and there is something wrong with its Remote Environment (RE) configuration or the RE is inactive. You can correct the RE while the transaction is in-flight and go ahead with repetitive method invocations within the same Transaction Server process. Meanwhile, COMTI state machines have been allocated for the unsuccessful method invocations that occurred before the RE was corrected. These unusable state machines are left intact, using memory and being examined and rejected on each method invocation. So, there is more processing overhead incurred in addition to the memory leak.

WORKAROUND

Correct the erroneous RE and stop/start all Microsoft Transaction Server server processes.

STATUS

Microsoft has confirmed this to be a problem in Microsoft COM Transaction Integrator for CICS and IMS version 1.0. This problem was corrected in the latest SNA Server version 4.0 U.S. Service Pack. For information on obtaining this Service Pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

S E R V P A C K


Keywords: kbbug kbfix KB182652