You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users have reported that the performance of packetbeat is poor when dealing with HTTP requests and responses with large bodies.
After a quick analysis of the HTTP parser it has been identified the case where the parser keeps the whole request and response (including bodies) in memory, even when it is not necessary.
The text was updated successfully, but these errors were encountered:
This patch updates the http protocol parser in packetbeat to not
buffer the full request/response.
Body is only buffered when neccesary, i.e. the `include_body_for`
option specifies that the body should be included in the event, or
a request body of type form-urlencoded is sent.
Fixeselastic#6679
* HTTP benchmark for large bodies
A simple benchmark that processes a 10MB request.
* http: improve hide secrets unit test
It would not catch the case where the functionality to extract
form-urlencoded parameters is broken.
* http: add missing unit tests
Tests were missing for the following features:
- include_body_for
- send_request
- send_response
* http: remove unused parser state
* Reduce memory usage of http parser
This patch updates the http protocol parser in packetbeat to not
buffer the full request/response.
Body is only buffered when neccesary, i.e. the `include_body_for`
option specifies that the body should be included in the event, or
a request body of type form-urlencoded is sent.
Fixes#6679
Users have reported that the performance of packetbeat is poor when dealing with HTTP requests and responses with large bodies.
After a quick analysis of the HTTP parser it has been identified the case where the parser keeps the whole request and response (including bodies) in memory, even when it is not necessary.
The text was updated successfully, but these errors were encountered: