Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > inetserver iis > february 2006 >

inetserver iis : ISAPI Filter fails in load testing


Chandra Sekhar
2/22/2006 4:27:18 AM
Hi,

I have created a simple ISAPI filter which will do a 302 Redirect to a
new URL generated by manipulating the requested URL. When i test this
ISAPI on IIS under Load testing then the test clients are showing
'zero' response time after first three minutes. At this point of time i
also tried to check manually doubting whether that is because of any
error. when i browsed manually i received an "Internal Server Error".

I have done locking in the ISAPI using Critical Sections as i have seen
some mixing of request URLs when it performs the manipulation on the
requested URL.

Should we make our own locking or threading mechanism or IIS will take
care of this threading?

I felt the ISAPI filter might have got crashed. Is this the reason or
something else. Can somebody tell me how to diagnose this problem ?

Thanks in advance.
Pat [MSFT]
2/22/2006 10:27:18 AM
For an ISAPI filter you need to assume that you can have multiple threads
entering any given function at a time. The filter is responsible for it's
internal data structures and ensuring that synchronization (via whatever
locking mechanism is appropriate). A filter may also create it's own thread
pool and post work to those threads, but if it does so then it must also
handle the re-synching of the response.

I think you need to debug the filter and determine the root cause of the
load problem. There is no indication that the problem is with threading or
locking or what have you any more than any other possible cause - potential
corruption that only manifests itself after 'X' hits where X is reached much
faster under load.


Pat



[quoted text, click to view]

Shadul
3/16/2008 11:12:13 PM
Hmmm....I had the same issue sometime back.
Can you please share your kind so that we can figure it out.

From http://www.developmentnow.com/g/59_2006_2_0_0_702292/ISAPI-Filter-fails-in-load-testing.htm

Posted via DevelopmentNow.com Groups
Jaiswar Vipin Kumar Ramdeo
1/27/2009 5:15:57 AM
Hi Dear,
It's so simple. I was also facing same problem. you have to do one thing. In the current project there is one defination file and in that simple set the "HttpFilterProc , GetFilterVersion" in the list it some what look like

; WRITELAYOUT.def : declares the module parameters for the DLL.
E.q.

LIBRARY "WRITELAYOUT"

EXPORTS
HttpExtensionProc
GetExtensionVersion
HttpFilterProc
GetFilterVersion
TerminateExtension

Where "WRITELAYOUT" is my project name.

From http://www.developmentnow.com/g/59_2008_3_0_0_702292/ISAPI-Filter-fails-in-load-testing.htm

Posted via DevelopmentNow.com Groups
AddThis Social Bookmark Button