本章是关于 cassandra 数据库运行相关错误解决
一、错误:
日志:web
[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等)vim