473,795 Members | 3,151 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1773
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*******@yaho o.com> wrote in message
news:e3******** *******@TK2MSFT NGP12.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*******@yaho o.com> wrote in message
news:e3******** *****@TK2MSFTNG P12.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
1757
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 need to send message to a 'server wide' application from any HttpApplication on the same server and obtain responses (wich may be simple strings or streams for example), this 'server wide' application is also
1
2237
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 class on Global.asax file. What I need, in code, is the following: public class MyhttpApplication : System.Web.HttpApplication and then , Global class extends myHttpApplication
5
1540
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 on only one instance (the one that was created first). Anyone has an idea? How to test:
2
4587
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 into the process, does each instance of HttpApplication keep its own set of HttpModule instance or HttpModules are shared among all HttpApplication instances? 2. In case of HttpApplication keep its own set of HttpModule, does the HttpModule...
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10214
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.