hanzo2001 opened a new issue #673: Incredible use of RAM even on a small example `rest-json` URL: https://github.com/apache/camel-quarkus/issues/673 `GraalVM 19.3.1` `OpenJDK 11.0.5` I have recently started exploring Quarkus for compiling some Camel projects down to native but I am having some serious RAM issues. I have mistakenly tried some of my own projects before testing the examples provided here. However, now that I have tried a simple camel-quarkus example as described in [https://camel.apache.org/camel-quarkus/latest/first-steps.html](https://camel.apache.org/camel-quarkus/latest/first-steps.html), I can reliably say that there is an enormous use of RAM even for miniature projects. Is this a known issue? Is there a way to keep the use of RAM under control? Is it because of my JDK version? (nobody should be starting projects on Java 8) Am I doing something wrong? How can I help? I tried the `camel-quarkus/example/rest-json` project from the link. These are the compilation details: ``` ~/lib/oracle/graalvm-ce-java11-19.3.1/bin/native-image -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy$BySpaceAndTime -jar rest-json-0.0.1-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http,https --enable-all-security-services -H:NativeLinkerOption=-no-pie -H:+JNI --no-server -H:-UseServiceLoaderFeature -H:+StackTrace rest-json-0.0.1-runner [rest-json-0.0.1-runner:4045] classlist: 10,359.71 ms [rest-json-0.0.1-runner:4045] (cap): 2,456.32 ms [rest-json-0.0.1-runner:4045] setup: 5,250.59 ms 09:57:45,180 INFO [org.jbo.threads] JBoss Threads version 3.0.0.Final [rest-json-0.0.1-runner:4045] (typeflow): 77,624.60 ms [rest-json-0.0.1-runner:4045] (objects): 42,548.84 ms [rest-json-0.0.1-runner:4045] (features): 1,372.48 ms [rest-json-0.0.1-runner:4045] analysis: 124,972.96 ms [rest-json-0.0.1-runner:4045] (clinit): 1,294.10 ms [rest-json-0.0.1-runner:4045] universe: 4,580.92 ms [rest-json-0.0.1-runner:4045] (parse): 11,093.54 ms [rest-json-0.0.1-runner:4045] (inline): 11,022.70 ms [rest-json-0.0.1-runner:4045] (compile): 68,941.43 ms [rest-json-0.0.1-runner:4045] compile: 93,748.62 ms [rest-json-0.0.1-runner:4045] image: 5,082.08 ms [rest-json-0.0.1-runner:4045] write: 1,204.12 ms [rest-json-0.0.1-runner:4045] [total]: 245,833.79 ms ``` I have ~16GB RAM with 14GB available for compilation (-2GB on a fresh restart). The example took 4min to complete and consumed almost the remaining 14GB RAM This miniature has only 2 dependencies (managed by a camel parent): ``` <parent> <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-bom</artifactId> <version>1.0.0-M3</version> </parent> <dependencies> <dependency> <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-platform-http</artifactId> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-jackson</artifactId> </dependency> </dependencies> ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
