[jbianco@Jesus-MacBookPro-M3 ~] java -version java version "17.0.12" 2024-07-16 LTS Java(TM) SE Runtime Environment Oracle GraalVM 17.0.12+8.1 (build 17.0.12+8-LTS-jvmci-23.0-b41) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 17.0.12+8.1 (build 17.0.12+8-LTS-jvmci-23.0-b41, mixed mode, sharing) ---------------------------------------------------------------------------------------------------- [jbianco@Jesus-MacBookPro-M3 ~] gradle --version ------------------------------------------------------------ Gradle 8.10.1 ------------------------------------------------------------ Build time: 2024-09-09 07:42:56 UTC Revision: 8716158d3ec8c59e38f87a67f1f311f297b79576 Kotlin: 1.9.24 Groovy: 3.0.22 Ant: Apache Ant(TM) version 1.10.14 compiled on August 16 2023 Launcher JVM: 17.0.12 (Oracle Corporation 17.0.12+8-LTS-jvmci-23.0-b41) Daemon JVM: /Library/Java/JavaVirtualMachines/graalvm-jdk-17.0.12+8.1/Contents/Home (no JDK specified, using current Java home) OS: Mac OS X 14.7 aarch64 ---------------------------------------------------------------------------------------------------- [jbianco@Jesus-MacBookPro-M3 ~/Documents/Eclipse/eclipse-java-workspace/Test1-Native-Data-MySQL] ./gradlew nativeCompile > Task :generateResourcesConfigFile [native-image-plugin] Resources configuration written into /Users/jbianco/Documents/Eclipse/eclipse-java-workspace/Test1-Native-Data-MySQL/build/native/generated/generateResourcesConfigFile/resource-config.json > Task :nativeCompile [native-image-plugin] GraalVM Toolchain detection is disabled [native-image-plugin] GraalVM location read from environment variable: JAVA_HOME [native-image-plugin] Native Image executable path: /Library/Java/JavaVirtualMachines/graalvm-jdk-17.0.12+8.1/Contents/Home/lib/svm/bin/native-image ======================================================================================================================== GraalVM Native Image: Generating 'test1-native-data-mysql' (executable)... ======================================================================================================================== For detailed information and explanations on the build output, visit: https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md ------------------------------------------------------------------------------------------------------------------------ Warning: Method ch.qos.logback.core.FileAppender.valueOf(String) not found. Warning: Method ch.qos.logback.core.Layout.valueOf(String) not found. Warning: Method ch.qos.logback.core.rolling.RollingPolicy.valueOf(String) not found. Warning: Method ch.qos.logback.core.rolling.TriggeringPolicy.valueOf(String) not found. Warning: Method ch.qos.logback.core.spi.ContextAware.valueOf(String) not found. Warning: Method com.zaxxer.hikari.HikariConfig.getScheduledExecutorService() not found. Warning: Method com.zaxxer.hikari.HikariConfig.isInitializationFailFast() not found. Warning: Method com.zaxxer.hikari.HikariConfig.isJdbc4ConnectionTest() not found. Warning: Method com.zaxxer.hikari.HikariConfig.setInitializationFailFast(boolean) not found. Warning: Method com.zaxxer.hikari.HikariConfig.setJdbc4ConnectionTest(boolean) not found. Warning: Method com.zaxxer.hikari.HikariConfig.setScheduledExecutorService(ScheduledThreadPoolExecutor) not found. Warning: Could not resolve class jakarta.inject.Inject for reflection configuration. Reason: java.lang.ClassNotFoundException: jakarta.inject.Inject. Warning: Could not resolve class jakarta.inject.Provider for reflection configuration. Reason: java.lang.ClassNotFoundException: jakarta.inject.Provider. Warning: Could not resolve class jakarta.inject.Qualifier for reflection configuration. Reason: java.lang.ClassNotFoundException: jakarta.inject.Qualifier. Warning: Could not resolve class javax.inject.Inject for reflection configuration. Reason: java.lang.ClassNotFoundException: javax.inject.Inject. Warning: Could not resolve class javax.inject.Qualifier for reflection configuration. Reason: java.lang.ClassNotFoundException: javax.inject.Qualifier. Warning: Could not resolve class javax.money.MonetaryAmount for reflection configuration. Reason: java.lang.ClassNotFoundException: javax.money.MonetaryAmount. Warning: Could not resolve class kotlin.Metadata for reflection configuration. Reason: java.lang.ClassNotFoundException: kotlin.Metadata. Warning: Could not resolve class kotlin.reflect.full.KClasses for reflection configuration. Reason: java.lang.ClassNotFoundException: kotlin.reflect.full.KClasses. Warning: Could not resolve class org.eclipse.core.runtime.FileLocator for reflection configuration. Reason: java.lang.ClassNotFoundException: org.eclipse.core.runtime.FileLocator. Warning: Could not resolve class org.reactivestreams.Publisher for reflection configuration. Reason: java.lang.ClassNotFoundException: org.reactivestreams.Publisher. [1/8] Initializing... (2.6s @ 0.23GB) Java version: 17.0.12+8-LTS, vendor version: Oracle GraalVM 17.0.12+8.1 Graal compiler: optimization level: 2, target machine: armv8-a, PGO: off C compiler: cc (apple, arm64, 16.0.0) Garbage collector: Serial GC (max heap size: 80% of RAM) 1 user-specific feature(s) - org.springframework.aot.nativex.feature.PreComputeFieldFeature SLF4J(W): No SLF4J providers were found. SLF4J(W): Defaulting to no-operation (NOP) logger implementation SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details. [2/8] Performing analysis... [*******] (14.2s @ 1.06GB) 12,481 (89.27%) of 13,981 types reachable 19,005 (61.77%) of 30,766 fields reachable 64,400 (62.38%) of 103,240 methods reachable 3,927 types, 240 fields, and 3,802 methods registered for reflection 67 types, 75 fields, and 57 methods registered for JNI access 5 native libraries: -framework CoreServices, -framework Foundation, dl, pthread, z [3/8] Building universe... (1.9s @ 1.72GB) [4/8] Parsing methods... [*] (1.8s @ 1.79GB) [5/8] Inlining methods... [***] (0.5s @ 1.45GB) [6/8] Compiling methods... [*****] (24.9s @ 1.98GB) [7/8] Layouting methods... [**] (2.8s @ 1.77GB) [8/8] Creating image... [**] (2.9s @ 2.75GB) 35.17MB (58.92%) for code area: 36,531 compilation units 23.56MB (39.48%) for image heap: 323,647 objects and 37 resources 974.60kB ( 1.59%) for other data 59.68MB in total ------------------------------------------------------------------------------------------------------------------------ Top 10 origins of code area: Top 10 object types in image heap: 14.37MB java.base 7.37MB byte[] for code metadata 3.79MB svm.jar (Native Image) 2.97MB byte[] for java.lang.String 2.85MB java.xml 2.34MB java.lang.String 2.76MB mysql-connector-j-8.0.33.jar 2.31MB byte[] for general heap data 1.76MB spring-core-6.1.13.jar 2.16MB java.lang.Class 1.60MB spring-boot-3.3.4.jar 766.20kB byte[] for reflection metadata 733.37kB spring-beans-6.1.13.jar 585.05kB com.oracle.svm.core.hub.DynamicHubCompanion 731.60kB logback-core-1.5.8.jar 411.38kB java.util.HashMap$Node 609.09kB spring-expression-6.1.13.jar 359.00kB c.o.svm.core.hub.DynamicHub$ReflectionMetadata 577.58kB java.security.jgss 339.55kB byte[] for embedded resources 5.25MB for 58 more packages 3.18MB for 2702 more object types ------------------------------------------------------------------------------------------------------------------------ Recommendations: PGO: Use Profile-Guided Optimizations ('--pgo') for improved throughput. HEAP: Set max heap for improved and more predictable memory usage. CPU: Enable more CPU features with '-march=native' for improved performance. QBM: Use the quick build mode ('-Ob') to speed up builds during development. BRPT: Try out the new build reports with '-H:+BuildReport'. ------------------------------------------------------------------------------------------------------------------------ 3.2s (6.1% of total time) in 100 GCs | Peak RSS: 4.28GB | CPU load: 9.14 ------------------------------------------------------------------------------------------------------------------------ Produced artifacts: /Users/jbianco/Documents/Eclipse/eclipse-java-workspace/Test1-Native-Data-MySQL/build/native/nativeCompile/test1-native-data-mysql (executable) ======================================================================================================================== Finished generating 'test1-native-data-mysql' in 52.2s. [native-image-plugin] Native Image written to: /Users/jbianco/Documents/Eclipse/eclipse-java-workspace/Test1-Native-Data-MySQL/build/native/nativeCompile BUILD SUCCESSFUL in 53s