Security issue calling ddl from Website

N

Nenefta

Hi all,


I created a website in .Net 2005. I wanted to use Health monitoring to
keep track of the amount of pagerequests coming in. If that number
exceeds a certain value, I want to reroute new users to another page.
Therefore, in my solution I have a project to read the specific
Performance Counter I need. My web.config is set up to call this
function every 10 sec. (using the HeartbeatWebEvent). The performance
counter will not give any values in this setup however.
When I directly read the Performance Counter from my global.asax, I do
get the specific values.
I guess my original setup does not work because another process
initiates the WebEvent but I do not know how to solve it.

Any directions would be appreciated!

Grtx,

Marcel van Oort
..Net developer
 
S

Scott Allen

Hi all,


I created a website in .Net 2005. I wanted to use Health monitoring to
keep track of the amount of pagerequests coming in.

To throttle connections I'd suggest changing the IIS configuration.
See the "Performance" tab under website properties and select a value
for "Connections limited to:".
 
N

Nenefta

Thank you for your reply.

I understand I can keep the amount of pagerequests restricted through
IIS configuration. However, we want to let users with an existing
session to be able to always see pages. I want to keep new sessions
from being added untill the storms has gone over.

Furthermore, I would still find it interesting to know how I can
combine Performance Counters and Health Monitoring.

Regards,

Marcel van Oort
..Net developer
 
S

Scott Allen

Thank you for your reply.

I understand I can keep the amount of pagerequests restricted through
IIS configuration. However, we want to let users with an existing
session to be able to always see pages. I want to keep new sessions
from being added untill the storms has gone over.

That can be tough, because it's hard to spot exactly when a user has
ended a session.
Furthermore, I would still find it interesting to know how I can
combine Performance Counters and Health Monitoring.

So you are reading the performance counters when the heartbeat event
fires? That is an interesting alternative to using a server side
timer. I'm not sure why you wouldn't be able to read the perf counter,
perhaps if you share some code we could take a look.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top