ES6.2.2 cannot initialize, allocate physical memory very slow

(Jinleileiking) #1

Describe the feature:

Elasticsearch version (bin/elasticsearch --version): 6.2.2

Plugins installed: [no plugin]

JVM version (java -version): 1.8.0

OS version (uname -a if on a Unix-like system): inux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64

500g mem. Total. 2 es (2.1.2) use 31 * 2 g mem ~/es6_2/node1/elasticsearch-6.2.2]$ free -g                             │          27.43    0.00   13.06    0.75    0.00   58.76
             total       used       free     shared    buffers     cached                                             │
Mem:           504        121        382          0          0         35

Description of the problem including expected versus actual behavior: When start es. There will be one core to locate memory. My machine had 2 process already running (es 2.1.2 ) . When I ran the third es (6.2.2) . The es process allocate memroy very slowly ( when set xms = 21g, It cost 30min).

When I comment jvm.options:alwayspretouchline. It also cannot work well

Steps to reproduce:

Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.

  1. hard to produce. I have 5 es machines. 3 allocating memory is fast. these 2 are slow. all the 5 nodes have 2 es already ran on them as data nodes(es 2.1.2)

Provide logs (if relevant):

when try jstack es62 process. the es62 will core dump.



(Jinleileiking) #2

Thread 25 (Thread 0x7fd2e0523700 (LWP 2352)):
#0 0x00007fd2df4265b6 in VirtualSpace::expand_by(unsigned long, bool) () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#1 0x00007fd2df42711e in VirtualSpace::initialize(ReservedSpace, unsigned long) () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#2 0x00007fd2def6b9f1 in CardGeneration::CardGeneration(ReservedSpace, unsigned long, int, GenRemSet*) () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#3 0x00007fd2dee493fb in ConcurrentMarkSweepGeneration::ConcurrentMarkSweepGeneration(ReservedSpace, unsigned long, int, CardTableRS*, bool, FreeBlockDictionary::DictionaryChoice) () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#4 0x00007fd2def6caa2 in GenerationSpec::init(ReservedSpace, int, GenRemSet*) () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#5 0x00007fd2def5b74e in GenCollectedHeap::initialize() () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#6 0x00007fd2df3f3aab in Universe::initialize_heap() () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#7 0x00007fd2df3f3e1e in universe_init() () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#8 0x00007fd2defad635 in init_globals() () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#9 0x00007fd2df3d802e in Threads::create_vm(JavaVMInitArgs*, bool*) () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#10 0x00007fd2df041244 in JNI_CreateJavaVM () from /data/work/es6.2/node1/es6/jdk1.8.0_45/jre/lib/amd64/server/
#11 0x00007fd2dfee545e in JavaMain () from /data/work/es6.2/node1/es6/jdk1.8.0_45/bin/../lib/amd64/jli/
#12 0x00007fd2e00fbaa1 in start_thread () from /lib64/
#13 0x00007fd2dfa2ebcd in clone () from /lib64/

(system) #3

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