Describe the issue
A clear and concise description of the issue. We recommend using the latest snapshot builds to replicate the issue as bugs are constantly being fixed in the master branch
Steps to reproduce the issue
Please include both build steps as well as run steps
- [e.g.: git clone --depth 1 https://git.myrepo.com/projectone ]
- [e.g.: mvn clean package]
git clone -b master https://github.com/apache/shardingsphere.git
cd ./shardingsphere/
git reset --hard fd574b8148331d9d2d23a2843ef83fef07323018
./mvnw -PgenerateStandardMetadata -DskipNativeTests -B -T1C clean test
./mvnw -am -pl distribution/proxy-native -B -T1C -Prelease.native -DskipTests clean package
git clone -b master https://github.com/apache/shardingsphere.git
cd ./shardingsphere/
git reset --hard fd574b8148331d9d2d23a2843ef83fef07323018
./mvnw -am -pl distribution/proxy-native -B -T1C -Prelease.native -DskipTests clean package
Describe GraalVM and your environment:
- GraalVM version (latest snapshot builds can be found here), or commit id if built from source: [e.g. EE 19.3, CE 20.0, CE 20.1.0-dev-20200304_0848]
CE 17.0.8
- JDK major version: [e.g.:8]
17
- OS: [e.g. macOS Catalina]
Ubuntu
- Architecture: [e.g.: AMD64]
AMD64
More details
Add any other information about the problem here. Especially important are stack traces or log output. Feel free to link to gists or to screenshots if necessary.
[1/8] Initializing... (27.7s @ 0.36GB)
Java version: 17.0.8+7, vendor version: GraalVM CE 17.0.8+7.1
Graal compiler: optimization level: 2, target machine: x86-64-v3
C compiler: gcc (linux, x86_64, 11.4.0)
Garbage collector: Serial GC (max heap size: 80% of RAM)
2 user-specific feature(s)
- com.oracle.svm.polyglot.groovy.GroovyIndyInterfaceFeature
- com.oracle.svm.thirdparty.gson.GsonFeature
[2/8] Performing analysis... [*******] (324.4s @ 3.00GB)
34,237 (86.31%) of 39,667 types reachable
54,240 (57.28%) of 94,692 fields reachable
173,836 (59.15%) of 293,909 methods reachable
9,189 types, 478 fields, and 5,914 methods registered for reflection
95 types, 94 fields, and 75 methods registered for JNI access
4 native libraries: dl, pthread, rt, z
=== Image generator watchdog detected no activity. This can be a sign of a deadlock during image building. Dumping all stack traces. Current time: Tue Aug 15 04:14:34 UTC 2023
"main" Id=1 in WAITING on lock=java.util.concurrent.ForkJoinTask$AdaptedRunnableAction@306b61a
at java.base@17.0.8/jdk.internal.misc.Unsafe.park(Native Method)
at java.base@17.0.8/java.util.concurrent.locks.LockSupport.park(LockSupport.java:341)
at java.base@17.0.8/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:468)
at java.base@17.0.8/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:670)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.meta.UniverseBuilder.build(UniverseBuilder.java:200)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:601)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:539)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:408)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:612)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:134)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:94)
"Reference Handler" Id=2 in RUNNABLE
at java.base@17.0.8/java.lang.ref.Reference.waitForReferencePendingList(Native Method)
at java.base@17.0.8/java.lang.ref.Reference.processPendingReferences(Reference.java:253)
at java.base@17.0.8/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:215)
"Finalizer" Id=3 in WAITING on lock=java.lang.ref.ReferenceQueue$Lock@dc1480a
at java.base@17.0.8/java.lang.Object.wait(Native Method)
at java.base@17.0.8/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
at java.base@17.0.8/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176)
at java.base@17.0.8/java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:172)
"Signal Dispatcher" Id=4 in RUNNABLE
"JVMCI-native CompilerThread0" Id=7 in RUNNABLE
"Common-Cleaner" Id=10 in TIMED_WAITING on lock=java.lang.ref.ReferenceQueue$Lock@9fedd6a
at java.base@17.0.8/java.lang.Object.wait(Native Method)
at java.base@17.0.8/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
at java.base@17.0.8/jdk.internal.ref.CleanerImpl.run(CleanerImpl.java:140)
at java.base@17.0.8/java.lang.Thread.run(Thread.java:833)
at java.base@17.0.8/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:162)
"Notification Thread" Id=11 in RUNNABLE
"native-image pid watcher" Id=12 in TIMED_WAITING on lock=java.util.TaskQueue@4cfc4231
at java.base@17.0.8/java.lang.Object.wait(Native Method)
at java.base@17.0.8/java.util.TimerThread.mainLoop(Timer.java:563)
at java.base@17.0.8/java.util.TimerThread.run(Timer.java:516)
"Thread-1" Id=13 in RUNNABLE
at java.management@17.0.8/sun.management.ThreadImpl.dumpThreads0(Native Method)
at java.management@17.0.8/sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:521)
at java.management@17.0.8/sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:509)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.DeadlockWatchdog.threadDump(DeadlockWatchdog.java:124)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.DeadlockWatchdog.watchdogThread(DeadlockWatchdog.java:81)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.DeadlockWatchdog$$Lambda$140/0x00000007c017dad0.run(Unknown Source)
at java.base@17.0.8/java.lang.Thread.run(Thread.java:833)
"Timer-0" Id=23 in TIMED_WAITING on lock=java.util.TaskQueue@7a7c8bd2
at java.base@17.0.8/java.lang.Object.wait(Native Method)
at java.base@17.0.8/java.util.TimerThread.mainLoop(Timer.java:563)
at java.base@17.0.8/java.util.TimerThread.run(Timer.java:516)
"ForkJoinPool.commonPool-worker-3" Id=30 in RUNNABLE
at platform/jdk.internal.vm.compiler/org.graalvm.compiler.nodes.GraphEncoder.writeEdges(GraphEncoder.java:462)
at platform/jdk.internal.vm.compiler/org.graalvm.compiler.nodes.GraphEncoder.encode(GraphEncoder.java:286)
at platform/jdk.internal.vm.compiler/org.graalvm.compiler.nodes.GraphEncoder.encodeSingleGraph(GraphEncoder.java:185)
at platform/jdk.internal.vm.compiler/org.graalvm.compiler.nodes.GraphEncoder.encodeSingleGraph(GraphEncoder.java:175)
at app/org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.results.StrengthenGraphs.makeOrApplyResults(StrengthenGraphs.java:183)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.meta.UniverseBuilder.lambda$buildProfilingInformation$0(UniverseBuilder.java:375)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.meta.UniverseBuilder$$Lambda$6697/0x00000007c3dfd228.accept(Unknown Source)
at java.base@17.0.8/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base@17.0.8/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779)
at java.base@17.0.8/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base@17.0.8/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
at java.base@17.0.8/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
at java.base@17.0.8/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base@17.0.8/java.util.concurrent.ForkJoinPool$WorkQueue.helpComplete(ForkJoinPool.java:1223)
at java.base@17.0.8/java.util.concurrent.ForkJoinPool.helpComplete(ForkJoinPool.java:1915)
at java.base@17.0.8/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:433)
at java.base@17.0.8/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:687)
at java.base@17.0.8/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159)
at java.base@17.0.8/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173)
at java.base@17.0.8/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.base@17.0.8/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at java.base@17.0.8/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.meta.UniverseBuilder.buildProfilingInformation(UniverseBuilder.java:371)
at app/org.graalvm.nativeimage.builder/com.oracle.svm.hosted.meta.UniverseBuilder$$Lambda$6696/0x00000007c3dfd000.run(Unknown Source)
at java.base@17.0.8/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1375)
at java.base@17.0.8/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base@17.0.8/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base@17.0.8/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base@17.0.8/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base@17.0.8/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
=== Memory statistics (in MB):
=== Used heap size: 3552
=== Free heap size: 478
=== Maximum heap size: 3552
=== Image generator watchdog is aborting image generation. To configure the watchdog, use the options -H:DeadlockWatchdogInterval=10 and -H:+DeadlockWatchdogExitOnTimeout
Error: Image build request for 'apache-shardingsphere-proxy-native' (pid: 9904, path: /home/runner/work/graalvm-v2301-ci-memory-test/graalvm-v2301-ci-memory-test/shardingsphere/distribution/proxy-native/target) failed with exit status 30
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request for 'apache-shardingsphere-proxy-native' (pid: 9904, path: /home/runner/work/graalvm-v2301-ci-memory-test/graalvm-v2301-ci-memory-test/shardingsphere/distribution/proxy-native/target) failed with exit status 30
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1982)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.build(NativeImage.java:1613)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1557)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.main(NativeImage.java:1531)
[1/8] Initializing... (24.7s @ 0.35GB)
Java version: 17.0.8+7, vendor version: GraalVM CE 17.0.8+7.1
Graal compiler: optimization level: 2, target machine: x86-64-v3
C compiler: gcc (linux, x86_64, 11.4.0)
Garbage collector: Serial GC (max heap size: 80% of RAM)
2 user-specific feature(s)
- com.oracle.svm.polyglot.groovy.GroovyIndyInterfaceFeature
- com.oracle.svm.thirdparty.gson.GsonFeature
[2/8] Performing analysis... [*******] (437.3s @ 2.85GB)
GC warning: 243.6s spent in 222 GCs during the last stage, taking up 55.67% of the time.
Please ensure more than 4.57GB of memory is available for Native Image
to reduce GC overhead and improve image build time.
34,237 (86.31%) of 39,667 types reachable
54,240 (57.26%) of 94,718 fields reachable
173,836 (59.15%) of 293,910 methods reachable
9,189 types, 478 fields, and 5,914 methods registered for reflection
95 types, 94 fields, and 75 methods registered for JNI access
4 native libraries: dl, pthread, rt, z
Terminating due to java.lang.OutOfMemoryError: GC overhead limit exceeded
The Native Image build process ran out of memory.
Please make sure your build system has more memory available.
com.oracle.svm.driver.NativeImage$NativeImageError
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1982)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.build(NativeImage.java:1609)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1557)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.main(NativeImage.java:1531)
Describe the issue
A clear and concise description of the issue. We recommend using the latest snapshot builds to replicate the issue as bugs are constantly being fixed in the master branch
Steps to reproduce the issue
Please include both build steps as well as run steps
git clone -b master https://github.com/apache/shardingsphere.git cd ./shardingsphere/ git reset --hard fd574b8148331d9d2d23a2843ef83fef07323018 ./mvnw -am -pl distribution/proxy-native -B -T1C -Prelease.native -DskipTests clean packageDescribe GraalVM and your environment:
CE 17.0.817UbuntuAMD64More details
Add any other information about the problem here. Especially important are stack traces or log output. Feel free to link to gists or to screenshots if necessary.