在路由器或消息处理器上设置消息大小限制
为防止 Edge 中出现内存问题,路由器和消息处理器上的消息载荷大小为
不能超过 10MB。超过这些大小会导致
protocol.http.TooBigBody
错误。
使用以下属性更改路由器和/或消息处理器的限制。
这两个属性的默认值均为“10m”(对应于 10MB):
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
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-29。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u6700\u540e\u66f4\u65b0\u65f6\u95f4 (UTC)\uff1a2024-08-29\u3002"}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-08-29。"],[],[]]