R
Richard Shea
Hi - I have an ASP script which does numerous writes via FSO using ...
Function LogActivity(strText)
Dim fso, f
Dim strTime
strTime = ABCNOW()
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fspenTextFile((ABC_OS_ROOT_PATH & "ABCMAINLOG.txt"), 8,
True)
f.WriteLine strTime & " " & strText
f.close
End Function
.... We have recently tripled the number of users using the app have
found that IIS is intermittently reporting 'Permission Denied' while
writing to the log. You can try again a moment later and all will be
well. Has anyone seen this ? It seems very strange that W2K can't deal
with multiple processes/threads writing to the same file without
getting itself confused ! To give you an idea of volume the script is
being invoked up to twice a second at peak times and each invocation
results in approx 150 calls to the above function. That doesn't seem
particularly radical to me but ... By the way the incidence of the
problems seems to be proportional to both the size of the file and the
density of the script requests.
There is a post in this newsgroup from a couple of months back ...
http://tinyurl.com/jyjk
.... which seems to be about the same issue but nothing much in the way
of a reply.
Does anyone know of any known issue with W2K/IIS/FSO which might make
it behave this way ?
regards
Richard Shea.
Function LogActivity(strText)
Dim fso, f
Dim strTime
strTime = ABCNOW()
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fspenTextFile((ABC_OS_ROOT_PATH & "ABCMAINLOG.txt"), 8,
True)
f.WriteLine strTime & " " & strText
f.close
End Function
.... We have recently tripled the number of users using the app have
found that IIS is intermittently reporting 'Permission Denied' while
writing to the log. You can try again a moment later and all will be
well. Has anyone seen this ? It seems very strange that W2K can't deal
with multiple processes/threads writing to the same file without
getting itself confused ! To give you an idea of volume the script is
being invoked up to twice a second at peak times and each invocation
results in approx 150 calls to the above function. That doesn't seem
particularly radical to me but ... By the way the incidence of the
problems seems to be proportional to both the size of the file and the
density of the script requests.
There is a post in this newsgroup from a couple of months back ...
http://tinyurl.com/jyjk
.... which seems to be about the same issue but nothing much in the way
of a reply.
Does anyone know of any known issue with W2K/IIS/FSO which might make
it behave this way ?
regards
Richard Shea.