I have a test Logstash setup feeding ES 2800 log/s. Total server memory
is 8G. ES_HEAP_SIZE is set to 3072m. After 6 hours
into import ES - as from 'top' - is seen to use 4.1G while BigDesk only
reports a "used" of 1.1G from the total HEAP of
"committed" of 2.9G. Please find the attached image. Why is this wide
variation in statistics? I'm unable to make up the
real memory usage of ES. Additional info that may help:
Is the memory usage really 'growing' ?? Linux uses all free memory as
buffer cache to speed up disk reading, and the memory is freed/used when a
process actually needs it. The TOP is showing higher memory number because
Linux probably is caching some ES stuff in memory . Just from experience, I
would say don't worry about TOP showing little higher memory for the
process than ES_HEAP_SIZE.
1.1 GB is the current heap being used, while 3 GB is the max memory
committed to jvm . I'd say treat the ES_HEAP_SIZE as your true memory
usage, and think about increasing memory if you heap_used gets close to
heap_committed.
On Sunday, May 5, 2013 11:32:18 AM UTC-4, vims wrote:
I have a test Logstash setup feeding ES 2800 log/s. Total server memory
is 8G. ES_HEAP_SIZE is set to 3072m. After 6 hours
into import ES - as from 'top' - is seen to use 4.1G while BigDesk only
reports a "used" of 1.1G from the total HEAP of
"committed" of 2.9G. Please find the attached image. Why is this wide
variation in statistics? I'm unable to make up the
real memory usage of ES. Additional info that may help:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.