elasticsearch 虚拟内存占用300G
Tasks: 381 total, 4 running, 377 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.2%us, 2.8%sy, 0.0%ni, 83.9%id, 1.9%wa, 0.0%hi, 6.2%si, 0.0%st
Mem: 48261M total, 43762M used, 4498M free, 2439M buffers
Swap: 8189M total, 534M used, 7655M free, 15847M cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19588 es 20 0 314g 21g 324m S 92 44.8 13500:54 java
60703 imp 20 0 435m 16m 8260 S 23 0.0 192:08.85 impassist
使用top命令查看,elasticsearch进程占用了314g虚拟内存。elsaticsearch为什么会占用这么大的虚拟内存,是否能限制其大小。