使用 docker-compose 启动 Camunda Zeebe 8.3.1 时出错

问题描述 投票:0回答:1

我将 CAMUNDA_PLATFORM_VERSION 从 8.3.0-alpha3 升级到 8.3.1 后。 启动时出现错误如图:

zeebe          | Picked up JAVA_TOOL_OPTIONS: -Xms512m -Xmx512m
zeebe          | [0.002s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
zeebe          | #
zeebe          | # There is insufficient memory for the Java Runtime Environment to continue.
zeebe          | # Cannot create worker GC thread. Out of system resources.
zeebe          | # An error report file with more information is saved as:
zeebe          | # /usr/local/zeebe/hs_err_pid8.log
zeebe exited with code 1

我使用相同的环境和相同的 docker-compose 方式来启动 Zeebe。 命令:docker-compose up zeebe

这是我的 zeebe

的 docker-compose.yml
  zeebe: # https://docs.camunda.io/docs/self-managed/platform-deployment/docker/#zeebe
    image: camunda/zeebe:${CAMUNDA_PLATFORM_VERSION}
    container_name: zeebe
    ports:
      - "26500:26500"
      - "9600:9600"
    environment:
      -ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_CLASSNAME=io.camunda.zeebe.exporter.ElasticsearchExporter
      - ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_ARGS_URL=http://elasticsearch:9200
      - ZEEBE_BROKER_EXPORTERS_ELASTICSEARCH_ARGS_BULK_SIZE=1
      - ZEEBE_BROKER_DATA_DISKUSAGECOMMANDWATERMARK=0.998
      - ZEEBE_BROKER_DATA_DISKUSAGEREPLICATIONWATERMARK=0.999
      - "JAVA_TOOL_OPTIONS=-Xms512m -Xmx512m"
    restart: always
    healthcheck:
      test: [ "CMD-SHELL", "curl -f http://localhost:9600/ready" ]
      interval: 30s
      timeout: 5s
      retries: 5
      start_period: 30s

我已尝试增加 JVM 的内存分配,但服务器仍然无法启动。

memory docker-compose jvm camunda zeebe
1个回答
0
投票

我在 Camunda 8.5 中遇到了同样的问题,并发现自己在这里。这对我有帮助:

https://github.com/keycloak/keycloak/issues/17404

添加docker启动参数--security-opt seccomp=unconfined 解决了这个问题。

我的 docker-compose.yaml 看起来不一样:

    ...
    ports:
      - "26500:26500"
      - "9600:9600"
      - "8088:8080"
    security_opt:
      - "seccomp=unconfined"
    ....
© www.soinside.com 2019 - 2024. All rights reserved.