A
AinO
Hi,
- I've created a webservice in VS2003/c# wich relies heavily on cache. It
has a cache manager wich loads
resources (triggered by requests) and wich has also a built in timer wich
triggers every 5 mins a check on
the unused lifetime of all cached resources and frees them if they exceed
their idle time limit. I made also a
log object wich logs HTTP application level (triggered from global.asax) and
web method level events (triggered
from the various webmethods). From the results of this log i'm fine tuning
the behavior of my cache manager. -
This works quite well, but i don't understand fully the behavior of a
HTTPApplication and i think it is the key to
understand and counter following problems :
1. When VS loads my project and connects to the web service IIS starts up an
HTTPApplication, and it
generates an application error event. Is this normal (to ignore) ?
2. My service is heavily used at office hours. So at 9am users starts to hit
it. At that time my cache
manager is very busy loading resources and it takes about 2 minutes before
the first user can comfortably work
with his client. Is it possible to wake a service at server side (i
considered building a small client wich wakes
the service at 8.45am and 12.45pm (end of lunchbreak) but i don't like the
idea because i prefer compact system architectures) ?
3. I notice the HTTPApplication class instance gets shuts down daily (a
while after the last request) twice. Maybe
there is a way to prevent this (wich makes 2. obsolete) ?
I'm aware these issues may relate more to fine tuning IIS then to .NET/c#
but i can't find any good directions...
Thanks in advance for your comments,
AinO.
- I've created a webservice in VS2003/c# wich relies heavily on cache. It
has a cache manager wich loads
resources (triggered by requests) and wich has also a built in timer wich
triggers every 5 mins a check on
the unused lifetime of all cached resources and frees them if they exceed
their idle time limit. I made also a
log object wich logs HTTP application level (triggered from global.asax) and
web method level events (triggered
from the various webmethods). From the results of this log i'm fine tuning
the behavior of my cache manager. -
This works quite well, but i don't understand fully the behavior of a
HTTPApplication and i think it is the key to
understand and counter following problems :
1. When VS loads my project and connects to the web service IIS starts up an
HTTPApplication, and it
generates an application error event. Is this normal (to ignore) ?
2. My service is heavily used at office hours. So at 9am users starts to hit
it. At that time my cache
manager is very busy loading resources and it takes about 2 minutes before
the first user can comfortably work
with his client. Is it possible to wake a service at server side (i
considered building a small client wich wakes
the service at 8.45am and 12.45pm (end of lunchbreak) but i don't like the
idea because i prefer compact system architectures) ?
3. I notice the HTTPApplication class instance gets shuts down daily (a
while after the last request) twice. Maybe
there is a way to prevent this (wich makes 2. obsolete) ?
I'm aware these issues may relate more to fine tuning IIS then to .NET/c#
but i can't find any good directions...
Thanks in advance for your comments,
AinO.