Deployment started with odo from Quarkus devfile v2 ends in OOM during build:
[INFO] Invoking resources:2.6:resources (default-resources) @ code-with-quarkus [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Invoking quarkus:3.2.6.Final-redhat-00002:generate-code (default) @ code-with-quarkus [INFO] Invoking compiler:3.11.0:compile (default-compile) @ code-with-quarkus [INFO] Changes detected - recompiling the module! :dependency [INFO] Compiling 2 source files with javac [debug release 17] to target/classes [INFO] Invoking resources:2.6:testResources (default-testResources) @ code-with-quarkus [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /projects/src/test/resources [INFO] Invoking quarkus:3.2.6.Final-redhat-00002:generate-code-tests (default) @ code-with-quarkus [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.014 s [INFO] Finished at: 2023-10-20T21:37:01Z [INFO] ------------------------------------------------------------------------ [ERROR] Java heap space -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError time="2023-10-20T21:37:01Z" level=error msg="program stopped with error:exit status 1" program=devrun time="2023-10-20T21:37:01Z" level=info msg="Don't start the stopped program because its retry times 0 is greater than start retries 0" program=devrun
Note: this is old version of odo. But we haven't had support request for later - for this purpose I created QUARKUS-3542
Full log attached in https://issues.redhat.com/secure/attachment/13060970/java-quarkus-rhbq-postga-eizb-app-5598c9959-rcj7c-tools.log
I think it's related to the devfile specifying 512 MB container:
components: - container: args: - tail - -f - /dev/null endpoints: - name: http-quarkus targetPort: 8080 - exposure: none name: debug targetPort: 5858 env: - name: DEBUG_PORT value: "5858" image: registry.access.redhat.com/ubi8/openjdk-17:1.16-1 memoryLimit: 512Mi mountSources: true volumeMounts: - name: m2 path: /home/user/.m2 name: tools
- is triggered by
-
QUARKUS-3213 [Doc Review]: QDOCS-143 [Docs]: Developing and compiling your Quarkus applications with Apache Maven guide
- Closed