- 
                Notifications
    You must be signed in to change notification settings 
- Fork 662
Fix span log oom #773
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
Fix span log oom #773
Conversation
| if (logs == null) { | ||
| logs = new LinkedList<>(); | ||
| } | ||
| if(logs.size() >= Config.Agent.LOG_LIMIT_PER_SPAN){ | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please import the code sttyle, yours are not correct, CI will fail.
|  | ||
| # The max number of TraceSegmentRef in a single span to keep memory cost estimatable. | ||
| agent.trace_segment_ref_limit_per_span=${SW_TRACE_SEGMENT_LIMIT:500} | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No point in adding this extra line.
        
          
                CHANGES.md
              
                Outdated
          
        
      | * Bump up cli to the 0.15.0-dev.latest(77b4c49e89c9c000278f44e62729d534f2ec842e) in e2e. | ||
| * Bump up apache parent pom to v35. | ||
| * Update Maven to 3.6.3 in mvnw. | ||
| * Fix oom due to too many span log. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Fix oom due to too many span log. | |
| * Fix OOM due to too many span logs. | 
Fix apache/skywalking#13472
Add a unit test to verify that the fix works.
Explain briefly why the bug exists and how to fix it.
If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #<#13471>.
Update the
CHANGESlog.