כדי למנוע בעיות זיכרון ב-Edge, גודל המטען הייעודי של ההודעות בנתב ובמעבד ההודעות מוגבל ל-10MB. חריגה מהגדלים האלה תוביל
לשגיאה protocol.http.TooBigBody
.
השתמש במאפיינים הבאים כדי לשנות את המגבלות בנתב, במעבד ההודעות או בשניהם. שני הנכסים מקבלים ערך ברירת מחדל של 10 מ', שתואם ל-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
- שומרים את השינויים.
- חשוב לוודא שקובץ הנכסים נמצא בבעלות המשתמש 'pigee':
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