OpsMgr 2007 Solution: Management Pack scripts fail and consume large amounts of memory


image


Here’s an issue that was sent to me courtesy of a couple different Support Engineers in our Operations Manager group.  Apparently we’re getting a call or two on this and they thought it might help if we got the word out.


Issue: You may notice that on certain machines running the OpsMgr agent, cscripts fail and then consume large amounts of memory (e.g. 100MB or more).  This can cause virtual memory errors such as this:


Event Type:      Warning
Event Source:   Health Service Modules
Event ID:          21402
Description: Forced to terminate the following process started at <time> because it ran past the configured timeout 120 seconds.


Command executed:    “C:\WINDOWS\system32\cscript.exe” //nologo “C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 22\1662\AD_Database_and_Log.vbs” false {24FC5C13-D587-5C71-820F-D146FFDF4917} 0.2 500000 200000 0.05
Working Directory:    C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 22\1662\


One or more workflows were affected by this. 


Cause: This can occur in some circumstances if the computer in question is using a version of Windows Script prior to 5.7.


Resolution: Apply the Windows Script 5.7 or later update.  Windows Script 5.7 can be downloaded here:


http://www.microsoft.com/downloads/details.aspx?FamilyID=f00cb8c0-32e9-411d-a896-f2cd5ef21eb4&DisplayLang=en


Note: A special thanks to Shamir Abdul Aziz and Ted Sendler for their work on this.


J.C. Hornbeck | Manageability Knowledge Engineer

Comments (6)

  1. Anonymous says:

    So after some digging I found the following:

    Alert: Script or Executable Failed to run

    Issue: Lots of Script or Executable Failed to run errors on the same system all failing at the same time (in this case about a half-dozen or more would all fail with a 21402 (timeout).

    Resolution: WMI was non-functional on the system (stuck at 100% utilization one processor). Stopped the WMI service, when that failed killed the process and re-started the WMI service.

    It was buried on this page:

    http://www.systemcentercentral.com/…/Default.aspx

    This seems to be more in line with out situation, we have a lot going on and frequently see the WMI service freak out on random clients. This is an outstanding issue for us, for which we've been unable to find a resolution for.

    But at least I know that I can potentially restart WMI to solve this particular error.

  2. Jeff Patton says:

    That's fine and good for XP and 2003 machines, what about Windows 7 and Windows Server 2008 R2?

  3. aziz says:

    aziz fazizollah321 @gmail.com

  4. show box says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    http://showboxandroids.com/showbox-apk/
    http://showboxappandroid.com/
    Latest version of Showbox App download for all android smart phones and tablets.
    http://movieboxappdownloads.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    http://showboxappk.com/showbox-for-ipad-download/
    http://showboxappk.com/showbox-for-iphone/
    Showbox for PC articles:
    http://showboxandroids.com/showbox-for-pc/
    http://showboxappandroid.com/showbox-for-pc-download/
    http://showboxforpcs.com/
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings.
    http://www.showboxforipad.org/showbox-apk/ Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android. The above
    all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.
    http://www.showboxforipad.org/
    http://movieboxappdownloads.com/moviebox-apk-android/
    http://movieboxappdownloads.com/download-moviebox-pc/
    Movie Box, an esteemed movies application in which you can find stacks of programs and films. The guide is given here to download Movie Box app to Android and to Apple iOS 9.0.2, iOS 8.4/8.3 and also for the lower versions without Jailbreak.
    http://showboxforiphone.org/
    Please do login to Showbox application with the help of Ymail. You can login in Ymail from here –
    http://ymaillogintips.com/
    Sign Up & Do registration for latest movies on Showbox application

  5. das says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?

    http://www.movieboxapkdownload.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows,
    Cartoons and many more such things on your smartphone.

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?

    http://www.aptoideapkdownload.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble.

    http://www.vidmatedownloadapk.com/

    Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.

    http://www.shareitforpccdownload.com/

    http://www.shareitforpccdownload.com/shareit-for-pc-windows-10-8-1-7-mac-free-download/

    SHAREit for PC lets you transfer files between devices like phones, tablets and computers. With the wide area of sharing compatibility, sharing across anything is easy now. This is the best and the fastest alternative for USB sharing.