You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Unfortunately there is no JobScheduler command to get its used memory.

But you can use the following shell commands where mySchedulerID must be substituted by your JobScheduler ID.

On Linux you can use {}ps{*}, i.e.

 ps -C scheduler ho vsz,cmd | grep "id=mySchedulerID " | awk '\{print $1\}'

On Windows you can use {}tasklist{} or {}wmic{*}, i.e.

 for /F "usebackq skip=1" %i in (`wmic process where "name='scheduler.exe' and commandline like '%-id=mySchedulerID %'" get workingsetsize`) do @echo.%i
 for /F "usebackq tokens=5,6" %i in (`tasklist /FI "ImageName eq scheduler.exe" /FI "Services eq sos_scheduler_mySchedulerID" /NH`) do @echo.%i%j
  • No labels