Edge for Private Cloud v4.18.05
Edge でメモリ関連の問題が発生しないように、Router と Message Processor で処理されるメッセージ ペイロードのサイズが 10 MB に制限されています。このサイズ制限を超えると、protocol.http.TooBigBody
エラーが発生します。
Router、Message Processor またはその両方でこの制限を変更するには、次のプロパティを使用します。これらのプロパティでは、デフォルト値が 10 MB に相当する「10m」に設定されています。
conf_http_HTTPRequest.body.buffer.limit
conf_http_HTTPResponse.body.buffer.limit
プロパティを設定するには:
- エディタで
router.properties
ファイルまたはmessage-processor.properties
ファイルを開きます。ファイルが存在しない場合は、次のコマンドで作成します。vi /opt/apigee/customer/application/router.properties
または
vi /opt/apigee/customer/application/message-processor.properties
- 必要に応じてプロパティを設定します。
conf_http_HTTPRequest.body.buffer.limit=15m conf_http_HTTPResponse.body.buffer.limit=15m
- 変更を保存します。
- プロパティ ファイルのオーナーを apigee ユーザーにします。
chown apigee:apigee /opt/apigee/customer/application/router.properties
または
chown apigee:apigee /opt/apigee/customer/application/message-processor.properties
- Edge コンポーネントを再起動します。
/opt/apigee/apigee-service/bin/apigee-service edge-router restart
または
/opt/apigee/apigee-service/bin/apigee-service edge-message-processor restart