Skip to content

Documentation precision about heap size and docker #51626

Closed
@soullivaneuh

Description

@soullivaneuh

This is not really a bug report nor a feature request, but a possible documentation issue.

On the docker-compose guideline, you recommend to use ES_JAVA_OPTS, but not on the jvm.options configuration guide.

Well, the env way looks better with docker. However, I saw a notice on this guide:

It is also possible to set the heap size via an environment variable. This can be done by commenting out the Xms and Xmx settings in the jvm.options file and setting these values via ES_JAVA_OPTS

But the options are present on the config file from the official docker image. So, to make it working, I have to build a custom one removing those options:

FROM docker.elastic.co/elasticsearch/elasticsearch:6.3.2 as search
RUN sed --in-place '/^-Xm[s,x]/d' config/jvm.options

Otherwise, the env usage does not work at all.

I'm maybe missing something, but the options should not be configured by default on the docker image if you recommend to use ENV vars, right?

I think the Dockerfile and/or the docs need some update/clarification.

Thoughts?

Metadata

Metadata

Assignees

Labels

:Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scripts>docsGeneral docs changesTeam:DeliveryMeta label for Delivery team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions