Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set up my IIS to keep my application alive?

Tags:

I think my Webapplication gets shut down after a while.

It returns a new session if I haven't used the application in maybe 5 minutes. The session timeout is set to 720 minutes so that can't be the issue.

Is it maybe a setting in the Application Pool or something like that? I figure it is some sort of resource management. I use IIS 7.0

like image 795
The real napster Avatar asked Apr 23 '09 11:04

The real napster


People also ask

How do I enable keep alive in IIS?

In the Home pane, double-click HTTP Response Headers. In the HTTP Response Headers pane, click Set Common Headers... in the Actions pane. In the Set Common HTTP Response Headers dialog box, check the box to enable HTTP keep-alives, and then click OK.

Why does IIS application pool stop automatically?

You should still investigate why the app pool has been stopped. Typically this means that the worker process has crashed a number of times in a short period of time. The Event Log, under the "System" category, should have info on when the faults were detected by the WAS service.

How do I host an application in IIS?

Go to Control Panel > Administrative Tools > Internet Information Services (IIS) Manager. In the Connections panel, expand your host tree, right-click on Sites, and choose Add Website. Enter the new website's name and choose the location. Enter the Host name.


1 Answers

IIS has a feature in properties where you can stop recycle your IIS on intervals

  1. Go to your "IIS Manager"
  2. Select "Application Pool" the instance you want to manage.
  3. Select "Advanced settings" action
  4. Under "Recycling" and set "Regular Time Interval" to 0, which means the application pool does not recycle.
like image 186
Mohamed Mansour Avatar answered Oct 05 '22 23:10

Mohamed Mansour