2021年12月8日 星期三

HTTP OLAP 503 Service Unavailable問題

 使用HTTP OLAP進行MDX 套表,在多人使用情況下會出現以下錯誤

 - System.Exception:  The connection either timed out or was lost.
 ---> Microsoft.AnalysisServices.AdomdClient.AdomdConnectionException: The connection either timed out or was lost.
 ---> System.Net.WebException: The remote server returned an error: (503) Service Unavailable. 


根據這篇文章 進行以下設定

1.調整msmdpump.ini ,加入

    <MinThreadPoolSize>0</MinThreadPoolSize>
    <MaxThreadPoolSize>0</MaxThreadPoolSize>
    <MaxThreadsPerClient>20</MaxThreadsPerClient>

<ConfigurationSettings>
    <ServerName>localhost</ServerName>
    <SessionTimeout>3600</SessionTimeout>
    <ConnectionPoolSize>100</ConnectionPoolSize>
    <MinThreadPoolSize>0</MinThreadPoolSize>
    <MaxThreadPoolSize>0</MaxThreadPoolSize>
    <MaxThreadsPerClient>20</MaxThreadsPerClient>
</ConfigurationSettings>

2.調整IIS HTTP OLAP所用的應用程式集區,調整佇列長度由原始的1000改為10000

    工作者處理序數上限由1改為10

 

重啟IIS生效 ,再觀察看看。

 it works.

 

  

沒有留言:

張貼留言

VS CODE離線安裝套件方式-續

去年 vscode離線安裝 powershell nupkg 今年在一台無外網的 windwos 2025上安裝時遇到了powershell版本一直讀取到了5.1的版本,鬼打牆了一下午,在VM還原重測測了好幾回,應該是可行了。 將下載到的免安裝powershell 解壓縮到...