2009-08-13 7 views
1

Quelqu'un sur notre serveur prod avait défini le paramètre "Intervalle de temps régulier" dans la section Recyclage sur 0 dans nos propriétés avancées du pool d'applications. Eh bien, j'ai essayé ça sur notre serveur de dev. Et j'obtiens cette erreur:Intervalle de temps normal - Paramètres du pool d'applications

La propriété 'Idle Time-out (minutes)' du modèle de processus du pool d'applications doit être inférieure à la propriété 'Regular Time Interval (minutes)' du redémarrage de période du pool d'applications.

La valeur de délai d'inactivité dans la section Modèle de processus a une valeur de 20, tout comme notre serveur prod. Alors qu'est-ce qui donne? Comment avons-nous pu faire la même chose dans la production, mais pas dans cette tentative ici? Y a-t-il une valeur spéciale à spécifier pour forcer un zéro?

Répondre

1

Vous réglez le temps-out régulier Intervalle et repos (minutes) afin que vous puissiez entrer votre valeur pour temps régulier Intervalle, après que vous allez au réglage de recyclage et de désactiver les intervalles de temps réguliers (en minutes)

maintenant vous avez 0 dans les intervalles de temps réguliers, mais votre valeur dans le délai d'inactivité ne change pas

0

Je trouve cet article: http://forums.iis.net/t/1160032.aspx

This is a bug in the IIS UI - you will have to set it using some other method (appcmd, scripting, powershell, directly editing configuration etc).

1

au lieu d'utiliser l'onglet « Avancé Se "fenêtre où j'ai eu cette erreur, j'ai utilisé le menu" Recyclage ".

1

To work around this problem, disable the Regular Time Interval (in minutes) property. To do this, use one of the following methods.

Method 1

1. Open IIS Manager. 
2. In the Connections pane, expand the server node, and then click Application Pools. 
3. Select the application pool for which you want to change the settings, and then click Recycling in the Actions pane. 
4. Click to clear the Regular time intervals (in minutes) check box. 
5. Click Next, and then follow the instructions to complete the wizard. 

Method 2

1. In the Start Search box, type command prompt, right-click Command Prompt, and then click Run as administrator. 
2. In the Administrator: Command Prompt window, type a command that resembles the following, and then press ENTER: 
    cd \windows\system32\inetsrv 
3. Type the following command, and then press ENTER: 
    appcmd set apppool /apppool.name:[DefaultAppPool]/recycling.periodicRestart.time:00:00:00 
Note The placeholder [DefaultAppPool] represents the name of the application pool that you want to edit. 

De Microsoft documentation.

Questions connexes