473,395 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

HTTPApplication behavior.

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.
Nov 17 '05 #1
3 1747
AinO,
Regarding your Application error event, without knowing what exactly the
even is, I'd be guessing. Perhaps somebody else could expand on it.

As far as "waking up" the service is concerned, you could have a simple VBS
script that runs from Task Scheduler that makes the required request to get
everything going, before business hours.

Addressing the third issue, you could run the IISState tool to create a dump
that would provide more insight into what and from where your application is
quitting.

Hope the above gives some ideas.

--Peter

"AinO" <no*****@please.com> wrote in message
news:rp**********************@phobos.telenet-ops.be...
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.

Nov 17 '05 #2
the application object will shut down after inactivity, for health reasons,
you should accept that behavior and not muck with it. follow bromberg's
advice and write an application warmer that fires every so often to keep the
application nice and toasty. .net 2.0 fixes this problem with some
specialized tools by the way

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"Peter Bromberg [C# MVP]" <pb*******@yahoo.com> wrote in message
news:e3***************@TK2MSFTNGP12.phx.gbl...
AinO,
Regarding your Application error event, without knowing what exactly the
even is, I'd be guessing. Perhaps somebody else could expand on it.

As far as "waking up" the service is concerned, you could have a simple
VBS script that runs from Task Scheduler that makes the required request
to get everything going, before business hours.

Addressing the third issue, you could run the IISState tool to create a
dump that would provide more insight into what and from where your
application is quitting.

Hope the above gives some ideas.

--Peter

"AinO" <no*****@please.com> wrote in message
news:rp**********************@phobos.telenet-ops.be...
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.


Nov 17 '05 #3
Thanks Peter and Alvin for the info, i will go for the scheduled VBS ...

AinO.
"Peter Bromberg [C# MVP]" <pb*******@yahoo.com> wrote in message
news:e3*************@TK2MSFTNGP12.phx.gbl...
AinO,
Regarding your Application error event, without knowing what exactly the
even is, I'd be guessing. Perhaps somebody else could expand on it.

As far as "waking up" the service is concerned, you could have a simple VBS script that runs from Task Scheduler that makes the required request to get everything going, before business hours.

Addressing the third issue, you could run the IISState tool to create a dump that would provide more insight into what and from where your application is quitting.

Hope the above gives some ideas.

--Peter

"AinO" <no*****@please.com> wrote in message
news:rp**********************@phobos.telenet-ops.be...
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.


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: [Gauthier] | last post by:
Hello, I've a simple question: On a server that run multiple asp.net HttpApplication, is there any way with the asp.net framework to exchange data between different application? I basically...
1
by: Fernando Arámburu | last post by:
Hy everybody, I´m working on an ASP.NET framework and and I need to extend System.Web.HttpApplication. I mean, I need to put some intermediate class between System.Web.HttpApplication and Global...
5
by: miha.valencic | last post by:
Hi! A while ago, I noticed that there are usually two instances of HttpApplication created within IIS (observed on WinXPPro). Why is that? Especially, since Application_Start handler is called...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.