错误场景
在虚拟机上安装EFAK时,EKAF启动成功,但Web页面始终显示无法访问。
排错步骤
- 检查所有配置文件是否写正确(没错);
- 查看防火墙是否处于关闭状态(关闭着呢);
- 查看报错日志(早应该干这一步了);
日志报错原因
查看日志:
cat /opt/module/efak/logs/ke_console.out
日志显示内容:
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 2147483648, 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 2147483648 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /opt/module/efak/hs_err_pid20390.log
结论
根据报错日志,虚拟机内存不够了,因此把虚拟机内存调大即可。
Finally,OK啦!!!!