赞
踩
由于uat(预发)环境大量请求日志记录在es里,可能1个月就要累积5g以上的数据,然后就gg了。重启这活没人管,只能赶鸭子上架。
ps. 如果没有忽略结果,那就自行查找吧
ps -ef | grep elastic
Java HotSpot(TM) Server VM warning: INFO: os::commit_memory(0x76a00000, 1879048192, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1879048192 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /alidata1/app/elasticsearch/node-1/bin/hs_err_pid30392.lo
可以使用如下命令分析哪个进程~~太胖了~~
top
VIRT:进程占用的虚拟内存 RES:进程占用的物理内存
kill -9 23185
必须要用admin账户才能启动哦ssss
su admin
cd /alidata1/app/elasticsearch/node-1/bin
./elasticsearch -d
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。