473,408 Members | 2,477 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,408 software developers and data experts.

resource protection in IIS

I know this might be served better in the aspnet forum, but I'm not having
much luck with an answer there...

I have a couple of questions about asp.net hosted in IIS:

1. If my ASP.net application gets caught in an infinite loop... how does the
process ever get terminated? Does it time-out and get forced to terminate?

2. If my ASP.net application consumes all resources (eg. creates a bunch of
brushes it doesn't release), can this affect other processes running on the
ASP server at my hosting site?

Thanks,
John
Nov 16 '05 #1
4 1318
John,

If it is caught in an infinite loop, the client will eventually time
out, but the server will probably just keep processing along.

As for consuming all resources, there is a setting in ASP.NET which
indicates when the ASP.NET process should be restarted. The trigger for
this is a percentage of the total memory consumed on the machine. I think
that by default, it is at 60%, and you can change this in the .config file
for the app.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Wood" <sp**@isannoying.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
I know this might be served better in the aspnet forum, but I'm not having
much luck with an answer there...

I have a couple of questions about asp.net hosted in IIS:

1. If my ASP.net application gets caught in an infinite loop... how does the process ever get terminated? Does it time-out and get forced to terminate?

2. If my ASP.net application consumes all resources (eg. creates a bunch of brushes it doesn't release), can this affect other processes running on the ASP server at my hosting site?

Thanks,
John

Nov 16 '05 #2
So when you rebuild the application that's running on IIS, does it kill off
any existing processes started by that application?

I mean, when you're developing you're sure to hit points where your app
hangs... just wondering if they ever get terminated!

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ew*************@TK2MSFTNGP12.phx.gbl...
John,

If it is caught in an infinite loop, the client will eventually time
out, but the server will probably just keep processing along.

As for consuming all resources, there is a setting in ASP.NET which
indicates when the ASP.NET process should be restarted. The trigger for
this is a percentage of the total memory consumed on the machine. I think
that by default, it is at 60%, and you can change this in the .config file
for the app.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Wood" <sp**@isannoying.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
I know this might be served better in the aspnet forum, but I'm not having much luck with an answer there...

I have a couple of questions about asp.net hosted in IIS:

1. If my ASP.net application gets caught in an infinite loop... how does

the
process ever get terminated? Does it time-out and get forced to terminate?
2. If my ASP.net application consumes all resources (eg. creates a bunch

of
brushes it doesn't release), can this affect other processes running on

the
ASP server at my hosting site?

Thanks,
John


Nov 16 '05 #3
John,

When you recompile your app, I believe that sessions that are currently
being serviced by ASP.NET will continue to be serviced by the old
assemblies. New sessions will use the new assemblies when you move them in.

As for the infinite loop detection, I don't believe that there is
anything that will detect this and shut it down automatically. You should
use a diagnostic tool if you feel this is happening to see how many long
running requests there are on your system.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Wood" <sp**@isannoying.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
So when you rebuild the application that's running on IIS, does it kill off any existing processes started by that application?

I mean, when you're developing you're sure to hit points where your app
hangs... just wondering if they ever get terminated!

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:ew*************@TK2MSFTNGP12.phx.gbl...
John,

If it is caught in an infinite loop, the client will eventually time
out, but the server will probably just keep processing along.

As for consuming all resources, there is a setting in ASP.NET which
indicates when the ASP.NET process should be restarted. The trigger for
this is a percentage of the total memory consumed on the machine. I think
that by default, it is at 60%, and you can change this in the .config file for the app.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Wood" <sp**@isannoying.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
I know this might be served better in the aspnet forum, but I'm not having much luck with an answer there...

I have a couple of questions about asp.net hosted in IIS:

1. If my ASP.net application gets caught in an infinite loop... how
does the
process ever get terminated? Does it time-out and get forced to terminate?
2. If my ASP.net application consumes all resources (eg. creates a

bunch of
brushes it doesn't release), can this affect other processes running
on the
ASP server at my hosting site?

Thanks,
John



Nov 16 '05 #4
Thanks Nicholas.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:us**************@TK2MSFTNGP09.phx.gbl...
John,

When you recompile your app, I believe that sessions that are currently being serviced by ASP.NET will continue to be serviced by the old
assemblies. New sessions will use the new assemblies when you move them in.
As for the infinite loop detection, I don't believe that there is
anything that will detect this and shut it down automatically. You should
use a diagnostic tool if you feel this is happening to see how many long
running requests there are on your system.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Wood" <sp**@isannoying.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
So when you rebuild the application that's running on IIS, does it kill

off
any existing processes started by that application?

I mean, when you're developing you're sure to hit points where your app
hangs... just wondering if they ever get terminated!

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote

in
message news:ew*************@TK2MSFTNGP12.phx.gbl...
John,

If it is caught in an infinite loop, the client will eventually time out, but the server will probably just keep processing along.

As for consuming all resources, there is a setting in ASP.NET which indicates when the ASP.NET process should be restarted. The trigger for this is a percentage of the total memory consumed on the machine. I think that by default, it is at 60%, and you can change this in the .config file for the app.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John Wood" <sp**@isannoying.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
> I know this might be served better in the aspnet forum, but I'm not

having
> much luck with an answer there...
>
> I have a couple of questions about asp.net hosted in IIS:
>
> 1. If my ASP.net application gets caught in an infinite loop... how does the
> process ever get terminated? Does it time-out and get forced to

terminate?
>
> 2. If my ASP.net application consumes all resources (eg. creates a bunch of
> brushes it doesn't release), can this affect other processes running on the
> ASP server at my hosting site?
>
> Thanks,
> John
>
>



Nov 16 '05 #5

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

Similar topics

0
by: Krisztian Kepes | last post by:
Hi ! In this time I use the Lock() for thread synchronization, and resource protection. But in the new project I must reorganize this thing. The program must be run in lin/win, so I cannot...
15
by: runonthespot | last post by:
Hi all, Don't know how many out there actually use HTA's, but I do, and am looking at protecting javascript code associated with one I look after. This HTA runs of a network drive, not a...
3
by: Raquel | last post by:
I want to learn about coding Stored Procedures on UDB from scratch, especially Java Stored Procedures. What is the best resource for that? "Application Development Guide" available in PDF on the...
9
by: Saso Zagoranski | last post by:
Hi! I have recently completed an application, written in C#. When I opened one of the files with a hex editor I was amazed by the lack of protection for the assemblies. My application uses SQL...
0
by: Ably+ | last post by:
I have MS Access DB protected with password and C# application. C# application deals with DB. In order to protect my data I am looking for better protection of Access DB, because everybody can...
2
by: John Wood | last post by:
I have a couple of questions (that may be more IIS related): 1. If my ASP.net application gets caught in an infinite loop... how does the process ever get terminated? Does it time out? 2. If my...
1
by: Ken.r | last post by:
I'm working my way throught ASP Resource Kit tutorial lab 3. This following code was working in the HTML page: private void btnSignIn_Click(object sender, System.EventArgs e) { // Add user...
13
by: david | last post by:
I can not figure out what is the problem that I can protect ASP.NEt form resource but not some other type of files, for example, images. All my aspx forms located in Demo folder and image files...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...

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.