COM+ restarting

November 1st, 2006

In heavy production we sometimes encounter situations, when Contributor COM+ or dllhost.exe grabs a lot of RAM and fails (or some contiguous memory errors). Cognos support recommends restarting COM on some schedule to fix such problems. In my experience this helps.

Restart is very fast (less than a second) and rather reliable. So here are COM+ restarting scripts.

A .vbs script restarting desired COM component. Set desired component name.
restart_com.vbs. Press more for code.

And some bat file to do basic logging. restart_com.bat@ echo off
rem restart specific COM+ component
cmd /c "CSCRIPT.EXE restart_com.vbs /B /nologo">>com_restart_log.txt

RSS feed | Trackback URI

1 Comment »

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post