1.root用户,设置环境变量ulimit -c unlimited ,程序崩溃后就会在当前目录下生成core文件。
2.查进程 在bin目录下ps -ef|grep dmserver 查出dm数据库运行对应的进程号
3.kill -11 对应的进程号,在bin目录下找到core.xxx文件
4.gdb dmserver core.xxx
where
thread
--得到一个编号
5./dmrdc sfile=core.xxx --生成 core_tmp文件
6.vi core_temp文件 --搜索编号 可查到导致数据库宕机的sql
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)