clrprofile造成的日志腫瘤問題解決
來源:程序員人生 發(fā)布時(shí)間:2014-06-01 20:18:10 閱讀次數(shù):3292次
w3wp.exe進(jìn)程會(huì)產(chǎn)生一個(gè)日志文件 在 C:Windows emppipe.log 無休止增長(zhǎng)
這個(gè)日志文件會(huì)無休止的增長(zhǎng)。造成系統(tǒng)速度變慢,經(jīng)常是c盤只剩下0字節(jié)。
請(qǐng)問怎么停掉這個(gè)進(jìn)程對(duì)日志的記錄。
查了一些資料有人說是clrprofile.exe造成的。但是我沒有記得我有運(yùn)行過這個(gè)程序。或者是機(jī)器上運(yùn)行了這個(gè)程序但是我不知道在哪兒。
不知道是不是這個(gè)原因。快被折磨死了。額
以上問題發(fā)在msdn操作系統(tǒng)論壇模塊沒人理我
這個(gè)問題又不能不解決。晚上搜了一下發(fā)現(xiàn)一個(gè)03年的帖子如下。
I got the same problem, however I have overcame it. By any chance have you ever run CLR Profiler/Allocation Profiler? Do you remember it failing?
As per CLR Profiler Document (which is little ambiguous) following locations has "Environment" variable which needs to be removed in the case when Profiler results in an error:
• HKLMSYSTEMCurrentControlSetServicesIISADMIN (ASP.NET)
• HKLMSYSTEMCurrentControlSetServicesW3SVC (ASP.NET)
測(cè)試了刪除這兩個(gè)鍵值問題依然存在。
然后再注冊(cè)表搜索 clrprofile
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTCLSID{8C29BC4E-1F57-461A-9B51-1200C32E6F1F}]
@="Microsoft CLR Profiler Test"
[HKEY_CLASSES_ROOTCLSID{8C29BC4E-1F57-461A-9B51-1200C32E6F1F}InprocServer32]
@="E:Program FilesCLRProfilerBinariesx86profilerOBJ.dll"
"ThreadingModel"="Both"
[HKEY_CLASSES_ROOTCLSID{8C29BC4E-1F57-461A-9B51-1200C32E6F1F}NotInsertable]
[HKEY_CLASSES_ROOTCLSID{8C29BC4E-1F57-461A-9B51-1200C32E6F1F}ProgID]
@="Objects Profiler.{8C29BC4E-1F57-461a-9B51-1200C32E6F1F}.1"
[HKEY_CLASSES_ROOTCLSID{8C29BC4E-1F57-461A-9B51-1200C32E6F1F}VersionIndependentProgID]
@="Objects Profiler.{8C29BC4E-1F57-461a-9B51-1200C32E6F1F}"
看到這個(gè)鍵的時(shí)候。感覺找對(duì)地方了 導(dǎo)出然后刪除。再啟動(dòng)應(yīng)用程序池運(yùn)行網(wǎng)站。不在創(chuàng)建pipe.log文件了。
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對(duì)您的學(xué)習(xí)有所幫助,可以手機(jī)掃描二維碼進(jìn)行捐贈(zèng)