Skip to content

8.3.3 CLI_JAVA_OPTS set fail,but ES_JAVA_OPTS success #89454

@dly667

Description

@dly667

Elasticsearch Version

8.3.3

Installed Plugins

No response

Java Version

bundled

OS Version

Linux dai-server 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Problem Description

  1. memory exhausted
    docker run --name es -p 9200:9200 -p 9300:9300 -e CLI_JAVA_OPTS="-Xms1g -Xmx1g" -e "discovery.type=single-node" elasticsearch:8.3.3
    top -c|grep elasticsearch

image

  1. it,s ok
    docker run --name es -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -e "discovery.type=single-node" elasticsearch:8.3.3
    top -c|grep elasticsearch

image

Steps to Reproduce

docker run --name es -p 9200:9200 -p 9300:9300 -e CLI_JAVA_OPTS="-Xms1g -Xmx1g" -e "discovery.type=single-node" elasticsearch:8.3.3

docker run --name es -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -e "discovery.type=single-node" elasticsearch:8.3.3

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Core/Infra/CLICLI utilities, scripts, and infrastructure>bug>docsGeneral docs changesTeam:Core/InfraMeta label for core/infra teamTeam:DocsMeta label for docs team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions