Thanks for the control hook, einstein_007. I've created a script that I'm running in the background to restart the process before it runs out of memeory. It polls tasklist every 30s and parses the size of the dwm.exe process, waiting for it to reach 1GB. At that point, it issues a net start and stop on the uxsms service.
MS really needs to fix this on their end.
(for those unfamiliar with windows scripting, save the below in a file with a .bat extension, then run it. You'll need tasklist and sleep installed, which should be windows 7 native applications.)
Code:
@echo off
rem script by forrestoff 5/18/2011
:start
for /f "tokens=5,6,7,8* delims=K, " %%i in ('tasklist^|find "dwm.exe"') do (
if not exist %%k (
echo %%i,%%j K
goto eof
) else (
set /p h=%%i,%%j,%%k K <nul
echo -- %time% --- OVER 1GB for the Process, starting it over.
net stop uxsms
net start uxsms
goto eof
)
)
:eof
sleep 30
goto start
Bookmarks