Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

linghengqian
Copy link
Member

@linghengqian linghengqian commented Jul 24, 2025

For #29052 .

Changes proposed in this pull request:


Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.
  • I have updated the Release Notes of the current development version. For more details, see Update Release Note

@linghengqian linghengqian changed the title Prevent generateMetadata Profiles from generating GraalVM Reachability Metadata for arrays Prevent generateMetadata Profiles from generating GraalVM Reachability Metadata for arrays and JdkLogger Jul 24, 2025
@linghengqian linghengqian force-pushed the proxy-grm branch 13 times, most recently from 4b2c093 to 24685d5 Compare July 25, 2025 06:12
@linghengqian linghengqian marked this pull request as ready for review July 25, 2025 06:53
Comment on lines 71 to 79
run: ./mvnw -PnativeTestInShardingSphere -e clean test
env:
MAVEN_OPTS: "-Xmx512m"
run: ./mvnw -PnativeTestInShardingSphere -e clean verify
Copy link
Member Author

@linghengqian linghengqian Jul 25, 2025

Choose a reason for hiding this comment

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

  • The native-image command line tool now expects nearly 10GB of free memory, which is a tricky thing to do. . . . Perhaps using -XX:MaxRAMPercentage=70.0 for the native-image command line tool is a better choice.
Build resources:
 - 8.71GB of memory (55.8% of 15.62GB system memory, determined at start)
 - 4 thread(s) (100.0% of 4 available processor(s), determined at start)
[junit-platform-native] Running in 'test listener' mode using files matching pattern [junit-platform-unique-ids*] found in folder [/home/runner/work/shardingsphere/shardingsphere/test/native/target/test-ids] and its subfolders.
[2/8] Performing analysis...  [******]                                                                 (631.8s @ 7.25GB)
GC warning: 456.8s spent in 1279 GCs during the last stage, taking up 70.82% of the time.
            Please ensure more than 9.23GB of memory is available for Native Image
            to reduce GC overhead and improve image build time.
   66,278 reachable types   (87.7% of   75,576 total)
  108,673 reachable fields  (54.4% of  199,808 total)
  352,047 reachable methods (60.0% of  586,525 total)
   83,746 types,   820 fields, and 5,645 methods registered for reflection
      131 types,   120 fields, and   118 methods registered for JNI access
        4 native libraries: dl, pthread, rt, z

@linghengqian linghengqian added this to the 5.5.3 milestone Jul 25, 2025
@terrymanu terrymanu merged commit 962655a into apache:master Jul 25, 2025
149 checks passed
@linghengqian linghengqian deleted the proxy-grm branch July 25, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants