Microsoft KB Archive/271696

= Smsapm32 Creates Large &quot;Complete&quot; Job Files on Client Computers =

Article ID: 271696

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition
 * Microsoft Systems Management Server 2.0 Service Pack 2

-



This article was previously published under Q271696



SYMPTOMS
Computers that have the Systems Management Server (SMS) Advertised Programs client agent installed may experience sluggish performance, with a lot of memory allocated to Smsapm32.exe (as viewed by using Performance Monitor or Task Manager). Files in the \Ms\Sms\Clicomp\Apa\Data\Complete folder may be large (larger than 10 KB) and contain repeated instances of inactive advertisements.



CAUSE
This problem occurs if both of the following conditions exist:
 * A specific program has more than one Advertisement.
 * One or more of the advertisements has expired.

The Advertised Programs client agent (Smsapm32) improperly writes information about the expiration of an advertised program repeatedly to files in the Complete folder. Smsapm32 uses the information from the files in this folder to identify which advertisements have already run or expired. As the files grow larger, more memory is allocated to track the associated data, and client performance may be reduced.



RESOLUTION
To resolve this problem, obtain the latest service pack for Systems Management Server version 2.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

288239 SMS: How to Obtain the Latest Systems Management Server 2.0 Service Pack



WORKAROUND
To work around this issue, do not create multiple advertisements of the same package/program combination and then subsequently expire one or more of them. Instead, if an advertisement is expired, delete it before creating a new advertisement for the same program.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Systems Management Server 2.0 Service Pack 3.



MORE INFORMATION
Smsapm32 writes a Complete file to the \Ms\Sms\Clicomp\Apa\Data\Complete folder when it has successfully run a program from an advertisement. The Complete file is an indicator that the program ran; it prevents the program from run again. Smsapm32 reads the contents of the Complete folder to determine if the offers available to the client have been run.

Below is a sample instance of inactive advertisement list exhibiting the problem of duplicates, resulting in excessive memory use and processor utilization by SMSAPM32.EXE. Note the duplication of instance data:

  { instance of Advertisement {         AdvertID = &quot;AAA20009&quot;; ODP = &quot;System&quot;; Site = &quot;AAA&quot;; };    instance of Advertisement {         AdvertID = &quot;AAA20009&quot;; ODP = &quot;System&quot;; Site = &quot;AAA&quot;; };    instance of Advertisement {         AdvertID = &quot;AAA20009&quot;; ODP = &quot;System&quot;; Site = &quot;AAA&quot;; };    instance of Advertisement {         AdvertID = &quot;AAA20009&quot;; ODP = &quot;System&quot;; Site = &quot;AAA&quot;; };    ...

In addition, we may also get multiple ODPKey instances. The following is an excerpt from a complete file with this problem:

instance of Active Advert List {       PackageId = &quot;MS000176&quot;; instance of ODPKeyList {               instance of ODPKey {                       ODP = &quot;System&quot;; Site = &quot;MS0&quot;; };               instance of ODPKey {                       ODP = &quot;System&quot;; Site = &quot;MS0&quot;; };               instance of ODPKey {                       ODP = &quot;System&quot;; Site = &quot;MS0&quot;; };

Note that the multiple instances of ODPKey may also cause high CPU utilization on the client from the SMSAPM32.EXE process, and large amounts of network traffic.

Additional query words: prodsms

Keywords: kbhotfixserver kbqfe kbbug kbfix kbsms200fix kbsms200presp3fix kbsoftwaredist KB271696

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.