接続タイムアウト設定の変更

接続タイムアウト・エラーが原因でアプリケーションをデプロイできない場合は、BPMA_Server_Config.xmlファイルでタイムアウト設定を増やす必要があります。

  BPMA_Server_Config.xmlでタイムアウト設定を変更する手順:

  1. Performance Management Architectディメンション・サーバーを停止します。

  2. <Middleware Home>\EPMSystem11R1\products\foundation\BPMA\AppServer\DimensionServer\ServerEngine\binBPMA_Server_Config.xmlファイルに移動します。

  3. BPMA_Server_Config.xmlファイルのバックアップ・コピーを作成します。

  4. ロギング・レベルをINFOからDEBUGに変更してデバッグレベルのメッセージのログがWindows Event Viewerに記録されるように、BPMA_Server_Config.xmlファイルのロギング構成セクションを編集します。

  5. 次のXMLタグを、BPMA_Server_Config.xmlファイルの</Data Access Layer>セクションの下に追加します。

    <ConnectionPooling>
                                           <PoolingEnabled>true</PoolingEnabled>
                                           <Connection Lifetime is the maximum life time (in seconds) of the 
    connection. Setting this to 0 disables it.-->
                                           <ConnectionLifetime>0</ConnectionLifetime>
                                           <!--MaximumPoolSize is the maximum number of connections in the 
    pool.-->
                                           <MaximumPoolSize>100</MaximumPoolSize>100>
                                           <!--MinimumPoolSize is the minimum number of connections in the 
    pool.-->
                                            <MinimumPoolSize>1</MaximumPoolSize>100>
                                            <!--Controls the enlistment behavior and capabilities of a conneciton 
    in context of COM+ transactions or System.Transactions.
                                                         This setting must be either "dynamic" or "true".-->
                                            <Enlist>true</Enlist>
                                            <!--The following 5 settings are specific to Oracle database 
    Connection Timeout is the maximum time (in seconds) to wait for a free connection from the pool.-->
                                            <ConnectionTimeout>15</ConnectionTimeout>
                                            <!--HA Events enables ODP.NET connection pool to proactively remove 
    connections from the pool when an Oracle RAC service, service member, database, or node goes down.  Works with RAC, 
    Data Guard, or a single database instance-->
                                             <HAEvents>false</HAEvents>
                                             <!--Load Balancing enables ODP.NET connection pool to balance work 
    requests across Oracle RAC instances based on the load balancing advisory and service goal.-->
                                             <LoadBalancing>false</LoadBalancing>
                                             <!--PoolSizeDecrement (Decr Pool Size) is the number of connections 
    that are closed when an excessive number of established connections are unused.-->
                                              <PoolSizeDecrement>5</PoolSizeDecrement>
                                              <!--PoolSizeIncrement (Incr Pool Size) is the number of new 
    connections to be created when all connections in the pool are in use.-->
                                              <PoolSizeIncrement>1</PoolSizeIncrement>
                                              <!--Validate Connection validates connections coming from the 
    pool.-->
                                              <ValidateConnection>false</ValidateConnection>
                                              <!--The following 4 settings are specific to MS SQL Server.-->
                                              <ConnectionReset>true</ConnectionReset>
                                              <LoadBalanceTimeout>0</LoadBalanceTimeout>
                                              <!--The following setting can be used to add any custom setting not 
    covered by anything else.-->
                                              <CustomSetting></CustomSetting>
                                 </ConnectionPooling>
  6. 接続タイムアウト設定の値を大きくします(600分、10時間など)。

  7. Performance Management Architectディメンション・サーバーを再起動します。

  8. Windows Event Viewerを開き、作成した接続文字列全体を含むイベントがあることを確認します。

  9. 手順5で作成したセクションをBPMA_Server_Config.xmlファイルから削除してOracle Hyperion EPM Architectディメンション・サーバーを再起動した場合、接続プールのタイムアウト設定がデフォルト値に戻るかどうかを確認するためにテストします。