Java virtual memory usage

(John) #1


I setup ES cluster and started to load logs into it.
Almost all parameters are in default except
ES_JAVA_OPTS="-Xms10g -Xmx10g"

I see that virtual memory usage of java process (which runs ES) constantly increases. After about 12 hours of running it consumes 264GB:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 21619 elastic+ 20 0 0.264t 0.018t 6.657g S 519.3 7.4 2565:39 java

And it continues to grow.

Is it normal?


(Mark Walkom) #2

Yes, see

That's what the 50% rule is for :slight_smile:

(John) #3

I read this chapter. I don't quite understand you: I have 256GB RAM, 10g heap size and (at the moment) 351GB of virtual memory used. Virtual memory usage grows steady after ES startup.

(Mark Walkom) #4

Yes, it's the OS caching files.

(John) #5

Ah, yes, I understand now: it is the size of index files which Lucene mmap()s.

(system) #6

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