Edge for Private Cloud 4.17.01 版
為避免 Edge 發生記憶體問題,路由器和訊息處理器的訊息酬載大小限制為 10 MB。超過這些大小會導致 protocol.http.TooBigBody 錯誤。
使用下列屬性,變更路由器、訊息處理器或兩者的限制。這兩個屬性的預設值都是「10m」,對應 10 MB:
- 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