win2003 sqlserver cpu 100%

鬱悶,過年放假回來第二天,公司服務器scsi硬盤放屁啦,幸好數據庫和圖片昨天都備過份,但恢復的東東也讓我頭疼啊iis,sqlserver,生成100w的靜態頁,靜態頁我沒備,55555555555

 

現上北京買個塊硬盤來,原來系統是windows2000,手到也沒有2000啦,從網上當了個win2003就裝上啦,本以爲會好用點,結果出了很多小問題,我改,最頭痛的問題讓我遇上啦 cpu佔用率100%,網站根本就打不開啦,恢復的前幾天一直正常,過了10來天突然出現這個問題,把IIS站建了幾個緩衝池,設置過期時間,不管用,重建索引不用,sqlserver分給他1g多內存一開機就喫沒啦,重起N便系統不管用,在網上搜了半天,也沒什麼實質性的解決方法,最後終於讓我搜着一個解決方法目前還管用

 

@echo off
echo 正在清除服務器垃圾文件,請稍等......
del /f /s /q %systemdrive%/*.tmp
del /f /s /q %systemdrive%/*._mp
del /f /s /q %systemdrive%/*.log
del /f /s /q %systemdrive%/*.gid
del /f /s /q %systemdrive%/*.chk
del /f /s /q %systemdrive%/*.old
del /f /s /q %systemdrive%/recycled/*.*
del /f /s /q %windir%/*.bak
del /f /s /q %windir%/prefetch/*.*
rd /s /q %windir%/temp & md %windir%/temp
del /f /q %userprofile%/cookies/*.*
del /f /q %userprofile%/recent/*.*
del /f /s /q "%userprofile%/Local Settings/Temporary Internet Files/*.*"
del /f /s /q "%userprofile%/Local Settings/Temp/*.*"
del /f /s /q "%userprofile%/recent/*.*"
echo 清除服務器LJ完成!
echo. & pause

 

建成批處理執行一下,在重起iis好啦

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章