Skip to content

Conversation

@hxd123456
Copy link
Contributor

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 CHANGES log.

if (logs == null) {
logs = new LinkedList<>();
}
if(logs.size() >= Config.Agent.LOG_LIMIT_PER_SPAN){
Copy link
Member

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}

Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Fix oom due to too many span log.
* Fix OOM due to too many span logs.

@wu-sheng wu-sheng added the enhancement New feature or request label Sep 5, 2025
@wu-sheng wu-sheng added this to the 9.6.0 milestone Sep 5, 2025
@wu-sheng wu-sheng merged commit d1af3f6 into apache:main Sep 6, 2025
205 of 229 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants