Why elasticsearch use so much os memory

Hi,

es 5.4.0

I set 16G to elasticsearch JVM, 'ps' prints:
/usr/java8/jdk/bin/java -Xms17179869184 -Xmx17179869184 -XX:MaxDirectMemorySize=17179869184 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data1/zdh/elasticsearch/logs/elasticsearch_20170705112742_pid12444.hprof -XX:OnOutOfMemoryError=/opt/ZDH/parcels/sbin/common/killparent.sh -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j2.disable.jmx=true -Dlog4j.shutdownHookEnabled=false -Dlog4j.skipJansi=true -Dlog.file=elasticsearch-elasticsearch-elasticsearch-apple101 -Dmax.log.file.size=256MB -Dmax.log.file.backup.index=10 -Dlog.threshold=INFO -Des.path.home=/opt/ZDH/parcels/lib/elasticsearch -cp /opt/ZDH/parcels/lib/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch -d -Epath.conf=/var/ZDH/multiService/run/1176-elasticsearch-elasticsearch-elasticsearch -p /var/ZDH/multiService/run/1176-elasticsearch-elasticsearch-elasticsearch/elasticsearch-elasticsearch-elasticsearch.pid

the 'top' prints:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12547 elastics 20 0 479g 42g 23g S 418.1 33.7 1919:26 java
32994 root 20 0 0 0 0 D 1.3 0.0 0:31.27 flush-8:128
3571 root 20 0 0 0 0 D 1.0 0.0 5:09.28 jbd2/sdi1-8
3577 root 20 0 0 0 0 S 1.0 0.0 6:49.30 jbd2/sdl1-8

why elasticsearch used 42g, far greater than 32G ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.