pai911 opened a new issue, #5080: URL: https://github.com/apache/camel-k/issues/5080
### What happened? When deploying a simple route in Java DSL, I kept seeing runtime errors ``` ╰─ klogs sample-674657f6d7-lzqtw java.lang.InternalError: java.lang.reflect.InvocationTargetException at com.oracle.svm.core.containers.Metrics.systemMetrics(Metrics.java:67) at com.oracle.svm.core.containers.Container.metrics(Container.java:44) at com.oracle.svm.core.ContainerInfo.<init>(ContainerInfo.java:34) at com.oracle.svm.core.Containers.memoryLimitInBytes(Containers.java:126) at com.oracle.svm.core.heap.PhysicalMemory.size(PhysicalMemory.java:92) at com.oracle.svm.core.graal.snippets.CEntryPointSnippets.initializeIsolate(CEntryPointSnippets.java:362) at com.oracle.svm.core.JavaMainWrapper$EnterCreateIsolateWithCArgumentsPrologue.enter(JavaMainWrapper.java:387) ``` ### Java Route ``` import org.apache.camel.builder.RouteBuilder; public class Sample extends RouteBuilder { @Override public void configure() throws Exception { from("timer:tick") .log("Hello Camel K!"); } } ``` ### Steps to reproduce #### Step 1 ``` ╰─ kamel run -t quarkus.build-mode=native --trait container.request-memory=6Gi --trait container.limit-memory=6Gi Sample.java Integration "sample" created ``` #### Step 2 ``` ╰─ kc get pod NAME READY STATUS RESTARTS AGE camel-k-operator-cb5498fc6-gqxz8 1/1 Running 0 5d16h sample-674657f6d7-lzqtw 0/1 CrashLoopBackOff 1 (4s ago) 5s ``` #### Step 3 ``` ╰─ klogs sample-674657f6d7-lzqtw java.lang.InternalError: java.lang.reflect.InvocationTargetException at com.oracle.svm.core.containers.Metrics.systemMetrics(Metrics.java:67) at com.oracle.svm.core.containers.Container.metrics(Container.java:44) at com.oracle.svm.core.ContainerInfo.<init>(ContainerInfo.java:34) at com.oracle.svm.core.Containers.memoryLimitInBytes(Containers.java:126) at com.oracle.svm.core.heap.PhysicalMemory.size(PhysicalMemory.java:92) at com.oracle.svm.core.graal.snippets.CEntryPointSnippets.initializeIsolate(CEntryPointSnippets.java:362) at com.oracle.svm.core.JavaMainWrapper$EnterCreateIsolateWithCArgumentsPrologue.enter(JavaMainWrapper.java:387) ``` ### Relevant log output ```shell {"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"","phase-to":"Initialization"} {"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"Initializing Integration","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample"} {"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"Initialization","phase-to":"Building Kit"} {"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"Building Kit","phase-to":"Deploying"} {"level":"info","ts":"2024-01-18T01:50:56Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"Deploying","phase-to":"Running"} {"level":"info","ts":"2024-01-18T01:51:04Z","logger":"camel-k.controller.integration","msg":"State transition","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","phase-from":"Running","phase-to":"Error"} {"level":"info","ts":"2024-01-18T01:51:04Z","logger":"camel-k.controller.integration","msg":"Integration error","request-namespace":"camel","request-name":"sample","api-version":"camel.apache.org/v1","kind":"Integration","ns":"camel","name":"sample","reason":"Error","error-message":"back-off 10s restarting failed container=integration pod=sample-674657f6d7-95kj4_camel(0a45e8ba-ed8a-454c-9867-b0d373e74ad5)"} {"level":"info","ts":"2024-01-18T01:52:16Z","logger":"camel-k.cmd","msg":"v1apha1.KameletBinding is deprecated, please, use v1.Pipe instead\n"} ``` ### Camel K version Camel K Client 2.1.0 Camel K Operator 2.1.0 -- 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. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org