diff --git a/elk/arm/elasticsearch/config/jvm.options b/elk/arm/elasticsearch/config/jvm.options index e5b64ac..d97fbc9 100644 --- a/elk/arm/elasticsearch/config/jvm.options +++ b/elk/arm/elasticsearch/config/jvm.options @@ -19,8 +19,8 @@ # Xms represents the initial size of total heap space # Xmx represents the maximum size of total heap space --Xms512m --Xmx512m +-Xms2g +-Xmx2g ################################################################ ## Expert settings diff --git a/elk/arm/elasticsearch/docker-compose.yml b/elk/arm/elasticsearch/docker-compose.yml index 01c2458..9aa6b5b 100644 --- a/elk/arm/elasticsearch/docker-compose.yml +++ b/elk/arm/elasticsearch/docker-compose.yml @@ -6,4 +6,7 @@ elasticsearch: volumes: - ./data:/opt/elasticsearch/data - ./config:/opt/elasticsearch/config + mem_limit: 4g + cap_add: + - IPC_LOCK restart: always