Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

duplicate parameters in ES command line #105

Open
mhow2 opened this issue Sep 16, 2019 · 4 comments
Open

duplicate parameters in ES command line #105

mhow2 opened this issue Sep 16, 2019 · 4 comments

Comments

@mhow2
Copy link
Contributor

mhow2 commented Sep 16, 2019

If I ps aux into the ES container, I see:

    6 esuser    13:57 /opt/jdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCM
SInitiatingOccupancyOnly -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitS
tackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 
-Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=/tmp -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDump
Path=data -XX:ErrorFile=logs/hs_err_pid%p.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution -XX:+P
rintGCApplicationStoppedTime -Xloggc:logs/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=32 -XX:GCLogFileSize=64m -Xms2g -Xmx2g -Des.path.home=/elasticsearch -Des.path.conf=/elasticsearch/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch -E network.bind_host=0.0.0.0 -Ehttp.max_content
_length=500mb

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

@mhow2
Copy link
Contributor Author

mhow2 commented Sep 17, 2019

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

@valeriocos
Copy link
Member

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).

@valeriocos
Copy link
Member

@mhow2 if you are OK with the answer, can we close this issue?

@valeriocos
Copy link
Member

ping @mhow2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants