G
G
great_772020-01-20 14:54:27
elasticsearch
great_77, 2020-01-20 14:54:27

Container with ElasticSearch loads cpu, how to find the reason?

Container with ElasticSearch loads the processor up to 90%

elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0
    volumes:
      - ./docker/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
    ports:
      - "9200:9200"
      - "9300:9300"
    environment:
      ES_JAVA_OPTS: "-Xmx256m -Xms256m"
      #login and password
      ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
      # Use single node discovery in order to disable production mode and avoid bootstrap checks
      # see https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
      cluster.name: demo

      discovery.type: single-node

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2020-01-20
@great_77

Have you looked at the container logs?

G
Georg Gaal, 2020-02-02
@gecube

How would that be normal. JVM and Elastic, which is based on it, are quite hungry for memory and CPU

R
Roman Mirilaczvili, 2020-02-03
@2ord

Linux perf tool to help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question