介紹一個限制進程最大CPU佔用的軟體: ThreadMaster

來源:互聯網
上載者:User
軟體的首頁
http://threadmaster.tripod.com/
'好像上不去...
這個連結是可以的
http://bednorz.uni2.net/anyland/threadmaster/threadmaster.htm

簡介:
ThreadMaster Monitors Threads and handle high CPU utilization on a per application basis.
ThreadMaster is a background service implementing a CPU Quota mechanism on top of the standard thread scheduling algorithms of the Microsoft Windows 2000 Operating Systems.
ThreadMaster monitors all running applications, and detects when a application  starts to  use excessive processor resources. It dynamically hunt down the offending thread, and clamp the CPU for this thread. This feature ensures that other users can remain working without noticing anything. The clamped process will eventually finish, and the clamp will be removed automatically.

: 目前的版本是Ver. 1.12 Build 182
http://bednorz.uni2.net/anyland/threadmaster/tminst112.zip

安裝 軟體僅支援Win2000以上系統

安裝非常簡單,將壓縮包解開,運行其中的Install.cmd就可以了。
在首頁上有卸載的方法,或者更簡單,下載一個指令碼執行一下也可以:
http://bednorz.uni2.net/anyland/threadmaster/uninst.cmd

配置詳解Configuration

軟體沒有GUI,所有設定直接修改註冊表:
ThreadMaster has no GUI interface, all configuration is done by using a well known tool "Regedit".  Changing  registry keys not described in this section, may cause serious problems. Use Registry Editor at your own risk. After any changes in the configuration please restart the ThreadMaster service for the changes to take effect.
All the default values in ThreadMaster is based on 2 CPU Compaq server, but can be used on any configuration.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ThreadMaster\Parameters]

CPUThresholdPct
CPU load threshold per application. This is a global setting and affect all applications, unless  other settings are defined in the "Application" or "Exceptions" sections.
Default: 15%,   Valid range 3 - 100.

MainSampleTime
Time in seconds for application load above "CPUThresholdPct"
This value define the measurement time ThreadMaster using for calculating the average CPU utilization for applications.
Default: 30 sec.   Values  above 10 sec.  accepted.

ThreadOverloadActionStart
Command to execute at action start.
Default :none

ThreadOverloadActionStop
Command to execute at action stopping. See the sample files "Threadloginstall.reg" and "ThreadLog.cmd" These files may be edited for your own usage.
Default: none

A list of special applications and the allowed CPU load.  Only  applications different from the general rule defined by "CPUThresholdPct" . Applications running as a single published application, in many instances, can profit by setting the applicationkey as low as 5%.
The list is  read dynamically.

IMPORTANT: In multithreaded applications with multiple CPU incentive threads, don't set this value below the current number of CPU incentive threads, this may cause the application to "hang" , or run extremely slow.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ThreadMaster\Parameters\Applications]
  appimagenameA      n         Application image name and  max. load threshold pct. (n)
  appimagenameB      m        Valid Range 3 - 100
  ...
  appimagenameX      x

A list of applications not handled. Make sure all vital and basis system processes are listed here, otherwise the system may not work properly.   Do not take it for granted that  antivirus programs etc. are vital, in this sense.
The list is only enumerated when Threadmaster starts.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ThreadMaster\Parameters\Exceptions]
  imagenameA
  imagenameB
  ...
  imagenameX

Statistics is updated by ThreadMaster, this section documents  the work of ThreadMaster.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ThreadMaster\Statistics]

中文詳解,部分關鍵配製

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ThreadMaster\Parameters]
CPUThresholdPct
這個是設定一般進程最大CPU佔用率的地方,有效值 3-100

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ThreadMaster\Parameters\Applications]
這裡可以針對具體進程限制其CPU佔用

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ThreadMaster\Parameters\Exceptions]
這裡可以設定不受上面佔用率限制影響的進程列表,預設已經有一些系統進程在裡面了,也可以自己進行修改

手工卸載的方法
命令提示字元下操作:
%windir%\system32\ThreadMaster\
運行 "net stop threadmaster"
運行 "ThreadMast -remove"
刪除 "%windir%\system32\ThreadMaster\" 目錄

 
文章摘自:中國分散式運算機論壇

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.