Condividi tramite


Come configurare le chiamate e sessioni simultanee

 

Si applica a: System Center 2012 SP1 - Service Manager, System Center 2012 R2 Service Manager, System Center 2012 - Service Manager

Limitando il numero di chiamate simultanee e sessioni sul Server contenuti Web in System Center 2012 - Service Manager, è possibile limitare il numero di risorse utilizzati dal Portale self-service. Utilizzare la procedura seguente per configurare il numero di sessioni e le chiamate simultanee. Per ulteriori informazioni, vedere l'articolo MSDN < serviceThrottling> per specificare il meccanismo di limitazione di un servizio Windows Communication Foundation (WCF).

Per configurare le sessioni e chiamate simultanee

  1. Accedere al computer che ospita il Server di contenuti Web con privilegi amministrativi.

  2. Utilizzando un editor di testo di propria scelta (ad esempio, il blocco note), aprire il file Web. config nella cartella Center Service Manager Portal\servicehost %inetroot%\inetpub\wwwroot\System.

  3. Individuare il < serviceBehaviors> sezione, come illustrato nell'esempio seguente:

    <system.serviceModel>  
    <behaviors>  
    <serviceBehaviors>  
    <behavior name="DefaultHttpServiceBehavior">  
    <serviceMetadata httpGetEnabled="true"/>  
    <serviceDebug includeExceptionDetailInFaults="true"/>  
    <dataContractSerializer maxItemsInObjectGraph="2147483647"/>  
    </behavior>  
    <behavior name="DefaultHttpsServiceBehavior">  
    <serviceMetadata httpsGetEnabled="true"/>  
    <serviceDebug includeExceptionDetailInFaults="true"/>  
    <dataContractSerializer maxItemsInObjectGraph="2147483647"/>  
    </behavior>  
    </serviceBehaviors>  
    </behaviors>  
    
  4. Aggiungere la riga < limitazioni maxConcurrentCalls serviceThrottling = maxConcurrentSessions "160" = "10000" /> nelle sezioni DefaultHttpServiceBehavior sia DefaultHttpsServiceBehavior, come illustrato nell'esempio seguente:

    <system.serviceModel>  
    <behaviors>  
    <serviceBehaviors>  
    <behavior name="DefaultHttpServiceBehavior">  
    <serviceMetadata httpGetEnabled="true"/>  
    <serviceThrottling maxConcurrentCalls="160" maxConcurrentSessions="10000"/>  
    <serviceDebug includeExceptionDetailInFaults="true"/>  
    <dataContractSerializer maxItemsInObjectGraph="2147483647"/>  
    </behavior>  
    <behavior name="DefaultHttpsServiceBehavior">  
    <serviceMetadata httpsGetEnabled="true"/>  
    <serviceDebug includeExceptionDetailInFaults="true"/>  
    <serviceThrottling maxConcurrentCalls="160" maxConcurrentSessions="10000"/>  
    <dataContractSerializer maxItemsInObjectGraph="2147483647"/>  
    </behavior>  
    </serviceBehaviors>  
    </behaviors>  
    
  5. Chiudere l'editor di testo e salvare le modifiche.

Vedere anche

Gestione del portale self-service di System Center 2012 - Service Manager