首页 > 数据库 > > 常见问题-开启和关闭core dump功能
集群开启core dump功能后,当数据库进程发生异常导致退出时,操作系统会将进程当前的内存状况存储在core dump文件中,以便运维人员快速定位问题。建议集群在安装时在preinstall阶段进行开启。本章节指导系统管理员,如何在集群运行过程开启或关闭core dump功能。
需要重启集群MPPDB服务。
说明:sed -i "/^ulimit -c.*/d" /etc/profile; echo "root soft core 0" >> /etc/security/limits.conf
TMOUT=0
说明:如果在EulerOS下,需要执行以下操作防止超时退出:
cd /opt/FusionInsight_SetupTool/preinstall
g_hosts="192.168.10.[10–16]"
g_user_name="root"
g_port=22
g_parted=2
g_parted_conf="192.168.10.10:host0.ini;192.168.10.11:host1.ini;192.168.10.12:host2.ini;192.168.10.13:host3.ini;
192.168.10.14:host4.ini;192.168.10.15:host5.ini;192.168.10.16:host6.ini;"
g_add_pkg=1
g_pkgs_dir="redhat-6.4:/media/"
g_log_file="/tmp/fi-preinstall.log"
g_debug=
g_hostname_conf="192.168.10.10:192.168.20.10:host0;192.168.10.11:192.168.20.11:host1;192.168.10.12:192.168.20.12:host2;192.168.10.13:192.168.20.13:host3;192.168.10.14:192.168.20.14:host4;192.168.10.15:192.168.20.15:host5;192.168.10.16:192.168.20.16:host6;"
g_swap_off=1
g_core_dump=1
g_core_dump_dir=""cd /opt/FusionInsight_SetupTool
./setuptool.sh preinstall
等待重启后,配置生效。
${BIGDATA_HOME}/om-server/om/inst/restartAllNoes.sh
TMOUT=0
说明:如果在EulerOS下,需要执行以下操作防止超时退出:
cd /opt/FusionInsight_SetupTool/preinstall
g_hosts="192.168.10.[10–16]"
g_user_name="root"
g_port=22
g_parted=2
g_parted_conf="192.168.10.10:host0.ini;192.168.10.11:host1.ini;192.168.10.12:host2.ini;192.168.10.13:host3.ini;
192.168.10.14:host4.ini;192.168.10.15:host5.ini;192.168.10.16:host6.ini;"
g_add_pkg=1
g_pkgs_dir="redhat-6.4:/media/"
g_log_file="/tmp/fi-preinstall.log"
g_debug=
g_hostname_conf="192.168.10.10:192.168.20.10:host0;192.168.10.11:192.168.20.11:host1;192.168.10.12:192.168.20.12:host2;192.168.10.13:192.168.20.13:host3;192.168.10.14:192.168.20.14:host4;192.168.10.15:192.168.20.15:host5;192.168.10.16:192.168.20.16:host6;"
g_swap_off=1
g_core_dump=
g_core_dump_dir=""cd /opt/FusionInsight_SetupTool
./setuptool.sh preinstall
等待重启后,配置生效。
${BIGDATA_HOME}/om-server/om/inst/restartAllNoes.sh
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3169943/ ,如需转载,请注明出处,否则将追究法律责任。