-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eCapture consuming too much memory when deal bigfile in single long connection #718
Comments
Hey there, @chilli13! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together! To address the issue of excessive memory usage in eCapture when dealing with large files over a long connection, you can consider implementing a mechanism to limit the size of the payload buffer in the
Implementing one or more of these strategies can help mitigate the memory consumption issue you're experiencing. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
It seems that this is a customized requirement rather than a general requirement. I suggest you hack it yourself. |
Unlimited writing to the payload may trigger OOM, I suggest set an output threshold to limit the length of a single message. A long response message may be split into multiple outputs, but it can avoid applying a large amount of memory for a single operation.
|
I think we can handle this part when we read from http payload? |
Can you provide an optimization solution? |
I will try it. |
Important
@dosu AI robot
Describe the bug
ecapture tls -m text cost memory over 1G when long connection access to large files
To Reproduce
Steps to reproduce the behavior:
some ecapture output,
Length
field is241283072
Linux Server/Android (please complete the following information):
Linux Server x86 vm
openeuler 20.03v0.9.2
Additional context
code
when ew.incoming reach
ew.tickerCount
then always keep ew.writeEvent(e),ew.payload.Write(e.Payload())
makes e.Payload() too long to apply too much memory. In some cases, it may even trigger an OOMIs it possible to add some configuration mechanism to limit the number of times a single uuid work executes ew.writeEvent(e)?
The text was updated successfully, but these errors were encountered: