Closed davidediruscio closed 4 years ago
I found the source of the problem.
In the container, there is /elasticsearch/bin/elasticsearch
which mentions:
# Optionally, exact memory values can be set using the `ES_JAVA_OPTS`. Note that
# the Xms and Xmx lines in the JVM options file must be commented out. Example
# values are "512m", and "10g".
So in the file /elasticsearch/config/jvm.options
, the following options should be commented out as suggested above:
# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
#-Xms1g
#-Xmx1g
Thank you @mhow2 for pointing this out. The current values of Jvm can be found at:
https://scava-dev.ow2.org:9200/_nodes/stats/jvm (e.g., heap_max_in_bytes
).
From there, it's possible to see that the params defined at https://github.com/crossminer/scava-deployment/blob/dev/docker-compose.yml#L148 are used (instead of the default ones).
@mhow2 if you are OK with the answer, can we close this issue?
ping @mhow2
Yes we can close it. the memory value is well taken into account however notice there is still a duplicate in the command line.
If I
ps aux
into the ES container, I see:Where you can see that Xmx/Xms is mentioned two times. (I wonder which value is taken into account). We need this fixed because we seem to reach a point where we need to raise the memory settings. flag @valeriocos