Discussion:
請問IIS log file異常中止紀錄
(时间太久无法回复)
SPUD
2006-05-04 19:35:02 UTC
Permalink
各位先進您好,
我遇到一個問題是IIS5.0環境中,在6:30分的時候電腦當機,重新開機後可以看的到經由ASP寫入到SQL的所有資料都寫到30分整無誤。奇怪的是,為什麼在IIS的Logfile紀錄檔中,卻只記錄到6:20分的時候,且最後一筆資料看起來像是異常中斷地只記錄到"2006"這四個字就停住了,其餘就是一片空白。我的疑問是,空白的地方可以解釋成IIS
logfile會先預留的chunk
size,但是為什麼電腦是在30分才當機,IIS的記錄檔卻只紀錄到20分。如果說20分電腦IIS已經出問題,那麼為什麼經由ASP檔案寫入SQL
SERVER的資料卻無異常地記錄到當機時候的30分?請教各位先進,這有可能是哪個環節發生問題了呢?非常感謝各位的協助,Any comments will
be welcome!
Bernard Cheah [MVP]
2006-05-11 04:35:45 UTC
Permalink
Not sure if I get you correctly. but the 'white space' you see in the log
file is normal.
IIS buffer the log before flush it out to disk. so if the log still in
memory and your machine crash, high chances that the log may not get written
to disk.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
ŠUŠì¥ý¶i±zŠn¡A
logfile·|¥ý¹w¯dªºchunk
size¡AŠý¬O¬°€°»ò¹qž£¬OŠb30€À€~·íŸ÷¡AIISªº°O¿ýÀÉ«o¥u¬ö¿ýšì20€À¡CŠpªG»¡20€À¹qž£IIS€wžg¥X°ÝÃD¡Ašº»ò¬°€°»òžg¥ÑASPÀɮ׌g€JSQL
SERVERªºžê®Æ«oµL²§±`Ša°O¿ýšì·íŸ÷®É­Ôªº30€À¡HœÐ±ÐŠUŠì¥ý¶i¡A³oŠ³¥i¯à¬O­þ­ÓÀôž`µo¥Í°ÝÃD€F©O¡H«D±`·PÁŠUŠìªºšó§U¡AAny comments will
be welcome!
SPUD
2006-05-11 17:27:02 UTC
Permalink
Dear Cheah,

Thanks for your kindly reply. As I know that the logfile is allocated as a
64KB text file in the beginning, then grows as 128K, 192K…
Could I say that IIS buffer the log in the memory first, when the buffer
size reaches 64K and IIS flush it out to the disk, then the log file in disk
changes to 128K?
My logfile was logged incomplete. Last record of it was “2006-“ and what
follows is a white space. Could I say that when IIS was flushing data from
memory to disk, system crashed and that’s why I received an incomplete
logfile? If it were true, how could I do to make sure every record in memory
to be saved to disk whatever system crashed or power supply interrupted? I’ll
be very appreciate for your directions and look forward to your reply. Thanks
again.

Sincerely,
Huei-Ting

"Bernard Cheah [MVP]" 來函:
Post by Bernard Cheah [MVP]
Not sure if I get you correctly. but the 'white space' you see in the log
file is normal.
IIS buffer the log before flush it out to disk. so if the log still in
memory and your machine crash, high chances that the log may not get written
to disk.
--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/
Post by SPUD
各位先進您好,
我遇到一個問題是IIS5.0環境中,在6:30分的時候電腦當機,重新開機後可以看的到經由ASP寫入到SQL的所有資料都寫到30分整無誤。奇怪的是,為什麼在IIS的Logfile紀錄檔中,卻只記錄到6:20分的時候,且最後一筆資料看起來像是異常中斷地只記錄到"2006"這四個字就停住了,其餘就是一片空白。我的疑問是,空白的地方可以解釋成IIS
logfile會先預留的chunk
size,但是為什麼電腦是在30分才當機,IIS的記錄檔卻只紀錄到20分。如果說20分電腦IIS已經出問題,那麼為什麼經由ASP檔案寫入SQL
SERVER的資料卻無異常地記錄到當機時候的30分?請教各位先進,這有可能是哪個環節發生問題了呢?非常感謝各位的協助,Any comments will
be welcome!
Bernard Cheah [MVP]
2006-05-24 06:54:52 UTC
Permalink
这个帖子可能不合适。 单击以显示它。
Loading...