COM+ restarting
November 1st, 2006In 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.
rem restart specific COM+ component
cmd /c "CSCRIPT.EXE restart_com.vbs /B /nologo">>com_restart_log.txt