2011年12月28日 星期三

[IIS].AspScriptFileCacheSize 在記憶體裡快取asp檔案

IIS 裡有一個設定, 透過增加快取的 asp, 讓程式在執行時, 可以快一點被執行完.

透過 GUI 設定方式如下:
-------------------------
1. Open the IIS MMC.
2. Right-click Web Sites, then click Properties.
3. On the Home Directory tab, click Configuration.
4. On the Cache Options tab, select Cache all requested ASP files.
5. Type a new value for ASP files cached in memory and click OK.
6. Click the Cache Options tab. Note that the value in the ASP files cached in memory text box is 999999.




透過指令的設定方式如下:
-------------------------
1. Open a command prompt.
2. Type cd inetpub\adminscripts.
3. Type adsutil set w3svc/AspScriptFileCacheSize "1-999999".


理論上, asp 程式碼的個數小於500支的話, 就用預設值就ok了, 預設好像是快取500支程式檔案.




資料來源:
-------------------------
BUG: Cannot Modify the Maximum Number of ASP Files Cached in Memory with the IIS MMC
http://support.microsoft.com/kb/308182/en-us

AspScriptFileCacheSize
http://msdn.microsoft.com/en-us/library/ms525870(v=vs.90).aspx

AspScriptFileCacheSize Metabase Property (IIS 6.0)
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/0596baf9-41c7-4459-bbc0-0c5d5d9fbd8b.mspx?mfr=true

沒有留言:

張貼留言

Facebook 留言板