Skip to content
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

feat: fix #13327 #13334

Closed
wants to merge 22 commits into from
Closed

feat: fix #13327 #13334

wants to merge 22 commits into from

Conversation

Linchen-Xu
Copy link
Contributor

What is the purpose of the change

fix #13327

  • dubbo.jstack-dump.max-line can be used to indicate that all stack trace lines should be printed now by setting it to a negative number, -1 for example.
  • write stack trace info directly into OutputStream instead of building a String

Brief changelog

update org.apache.dubbo.common.utils.JVMUtil

Verifying this change

Checklist

  • Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Add some description to dubbo-website project if you are requesting to add a feature.
  • GitHub Actions works fine on your own branch.
  • If this contribution is large, please follow the Software Donation Guide.

AlbumenJ and others added 3 commits November 1, 2023 19:19
- dubbo.jstack-dump.max-line can be used to indicate that all stack trace lines should be printed now
- write stack trace info directly into OutputStream instead of building a String
@Linchen-Xu Linchen-Xu changed the title optimize JVMUtil feat: fix #13327 Nov 8, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 8, 2023

Codecov Report

Merging #13334 (0a6a508) into 3.2 (9cb36bc) will increase coverage by 4.10%.
The diff coverage is n/a.

❗ Current head 0a6a508 differs from pull request most recent head 0bf308c. Consider uploading reports for the commit 0bf308c to get more accurate results

@@             Coverage Diff              @@
##                3.2   #13334      +/-   ##
============================================
+ Coverage     65.44%   69.54%   +4.10%     
  Complexity        2        2              
============================================
  Files          2006     1652     -354     
  Lines         86319    71608   -14711     
  Branches      12755    10265    -2490     
============================================
- Hits          56494    49802    -6692     
+ Misses        24497    17111    -7386     
+ Partials       5328     4695     -633     

see 512 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

CrazyHZM and others added 7 commits November 9, 2023 13:40
Signed-off-by: crazyhzm <crazyhzm@gmail.com>
# Conflicts:
#	dubbo-dependencies-bom/pom.xml
#	dubbo-dependencies/dubbo-dependencies-zookeeper-curator5/pom.xml
#	dubbo-dependencies/dubbo-dependencies-zookeeper/pom.xml
#	pom.xml
Bumps `netty4_version` from 4.1.100.Final to 4.1.101.Final.

Updates `io.netty:netty-all` from 4.1.100.Final to 4.1.101.Final
- [Commits](netty/netty@netty-4.1.100.Final...netty-4.1.101.Final)

Updates `io.netty:netty-bom` from 4.1.100.Final to 4.1.101.Final
- [Commits](netty/netty@netty-4.1.100.Final...netty-4.1.101.Final)

---
updated-dependencies:
- dependency-name: io.netty:netty-all
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: io.netty:netty-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fileOutputStream.set(jStackStream);
JVMUtil.jstack(jStackStream);
Copy link
Member

Choose a reason for hiding this comment

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

Please add some test cases to verify the result

@Linchen-Xu
Copy link
Contributor Author

Due to a branch operation error, this PR is reopened in #13358.

@Linchen-Xu Linchen-Xu closed this Nov 14, 2023
Copy link

sonarcloud bot commented Nov 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 9 Code Smells

83.3% 83.3% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JVMUtil performance improvement
4 participants