java构建一直卡着直到60分钟超时,工作流中的日志
构建命令如下:
mvn clean package -Dmaven.test.skip=true -B -U -X --settings /etc/settings.xml
服务内容cpu截图
然后尝试在本地和gitlab-ci构建都是5分钟之内就可以构建完成
dockerfiel如下
FROM hub.sxxxx/library/maven:3.8 as builder
COPY . /
RUN mvn clean package -Dmaven.test.skip=true -B -U -X --settings /etc/settings.xml
EXPOSE 8080
FROM jfrog-xxx.cn/docker/com.xxx.armada/base_image:0.2.0.14
ENV ACTIVE dev
ENV JVM_XMS ${JVM_XMS:-256m}
ENV JVM_XMX ${JVM_XMX:-512m}
ENV JAVA_OPTS “-Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8”
ENV PROJECT_ROOT /project
WORKDIR /$PROJECT_ROOT
COPY --from=builder /target/*.jar .
EXPOSE 8080
CMD java ${JVM_OPTS} ${JAVA_OPTS} -Xms${JVM_XMS} -Xmx${JVM_XMX} -Dspring.profiles.active=${ACTIVE} -jar ./*.jar
麻烦问一下有什么排查思路吗?