提问者:小点点

原生镜像构建过程在QUUKUS冻结


完整的代码托管在我的github上。

当我运行docker-comple up运行应用程序时,它会构建项目并在docker容器中。但是当我看到以下消息时,它被冻结了,没有进一步的进展。我已经等了3o分钟了。

[INFO] [io.quarkus.creator.phase.nativeimage.NativeImagePhase] Running Quarkus native-image plugin on OpenJDK 64-Bit GraalVM CE 19.1.1
[INFO] [io.quarkus.creator.phase.nativeimage.NativeImagePhase] /opt/graalvm/bin/native-image -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy$BySpaceAndTime -jar demo-1.0.0-SNAPSHOT-runner.jar -J-Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:+PrintAnalysisCallTree -H:-AddAllCharsets -H:EnableURLProtocols=http,https --enable-all-security-services -H:-SpawnIsolates -H:+JNI --no-server -H:-UseServiceLoaderFeature -H:+StackTrace
[demo-1.0.0-SNAPSHOT-runner:92]    classlist:  46,544.50 ms
[demo-1.0.0-SNAPSHOT-runner:92]        (cap):   6,189.27 ms
[demo-1.0.0-SNAPSHOT-runner:92]        setup:  14,789.15 ms
12:15:35,728 INFO  [org.hib.Version] HHH000412: Hibernate Core {5.4.4.Final}
12:15:35,872 INFO  [org.hib.ann.com.Version] HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
12:15:36,050 INFO  [org.hib.dia.Dialect] HHH000400: Using dialect: io.quarkus.hibernate.orm.runtime.dialect.QuarkusPostgreSQL95Dialect
12:15:36,207 INFO  [org.hib.val.int.uti.Version] HV000001: Hibernate Validator 6.1.0.Alpha6
12:15:51,382 INFO  [org.jbo.threads] JBoss Threads version 3.0.0.Beta5
12:16:01,451 INFO  [org.xnio] XNIO version 3.7.2.Final
12:16:03,196 INFO  [com.arj.ats.arjuna] ARJUNA012170: TransactionStatusManager started on port 44099 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
12:16:03,275 INFO  [org.xni.nio] XNIO NIO Implementation Version 3.7.2.Final

Docker ps结果:

$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
633648bc80fe        e5e7016613b4        "/bin/sh -c 'mvn cle…"   2 hours ago         Up 2 hours          8080/tcp            quirky_goldberg


共1个答案

匿名用户

我在Windows 10下使用Docker工具箱,创建docker机器时,mem大小默认512M。