0

我一直在迁移 Conductor 1.8.x -> Conductor 3.3.5。Conductor-UI 因 JavaScript 堆内存不足而失败。我们的客户因此受到影响。我也添加了 Docker 文件。请查找日志。

yarn run v1.22.15
warning package.json: No license field
warning Skipping preferred cache folder "/home/node/.cache/yarn" because it is not writable.
warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1000".
$ react-scripts start
warning Cannot find a suitable global folder. Tried these: "/usr/local, /home/node/.yarn"
[HPM] Proxy created: /  -> http://localhost:8080
�[34mℹ�[39m �[90m「wds」�[39m: Project is running at http://10.26.103.180/
�[34mℹ�[39m �[90m「wds」�[39m: webpack output is served from 
�[34mℹ�[39m �[90m「wds」�[39m: Content not from webpack is served from /app/ui/public
�[34mℹ�[39m �[90m「wds」�[39m: 404s will fallback to /
Starting the development server...


<--- Last few GCs --->

[34:0x7f99bb8eb2c0]   125312 ms: Scavenge (reduce) 253.1 (256.5) -> 252.7 (257.8) MB, 1.5 / 0.0 ms  (average mu = 0.192, current mu = 0.002) allocation failure 
[34:0x7f99bb8eb2c0]   127098 ms: Mark-sweep (reduce) 253.5 (256.8) -> 253.1 (258.5) MB, 1700.9 / 0.1 ms  (+ 79.2 ms in 13 steps since start of marking, biggest step 73.0 ms, walltime since start of marking 1785 ms) (average mu = 0.190, current mu = 0.188)

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

码头工人文件:

FROM openjdk:11-jdk

RUN mkdir -p /build_output
WORKDIR /build_output

RUN git clone https://github.com/Netflix/conductor.git
&& cd conductor
&& git checkout -b 3.3.5 v3.3.5
&& ./gradlew build -x test --stacktrace
&& cp ./server/build/libs/conductor-server-*-SNAPSHOT.jar /build_output/

ENTRYPOINT ./gradlew build -x test --stacktrace

FROM openjdk:11-jre
MAINTAINER PSDS team psds@appdirect.com

FROM alpine:3.4
RUN apk add --no-cache bash

RUN mkdir -p /app/config /app/logs /app/libs

COPY --from=0 /build_output/*.jar /app/libs
COPY ./bin /app
COPY ./config /app/config

RUN chmod +x /app/startup.sh

EXPOSE 8080

CMD ["/app/startup.sh"]
ENTRYPOINT ["/bin/bash"]
4

0 回答 0