cassandra os::commit_memory(0x00000000cc800000, 864026624, 0) failed; error='Cannot allocate memory'

本章是关于 cassandra 数据库运行相关错误解决
1、错误:
日志:

[root@cassandra01 conf]# tail -f /var/log/cassandra/cassandra.log
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000cc800000, 864026624, 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 864026624 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid31935.log

解决方法:
调整内存参数

vim jvm.options
#参数默认关闭,打开并修改为512m
#-Xms4g
#-Xmx4g
-Xms512m
-Xmx512m

次解决办法适用于大多数相关报错(elasticsearch、neo4j、tomcat等)

你可能感兴趣的:(cassandra)