标题: [OpenSolaris] 如何删除禁止core [打印本页] 作者: 谁动了我的测试 时间: 2007-06-27 22:14 标题: [OpenSolaris] 如何删除禁止core 请问系统里面有/下面有一个很大的core文件,不知道是怎么原因?现在机器都快跑不起来了,空间快满了,一天一天的要手工清?如何禁止啊?作者: dataset 时间: 2007-06-27 22:37
It is easy to disable or delete core file. But you need to find out which program and why it is generating the core files. Core files are the crash dump of applications and processes. They are abnormal.
To find out which program is generating the core file, type
coreadm -i core.%f
Next time, if there is a process crash, the core file name will be core.program_name
To disable the core dump (not recommended), type:
coreadm -d process
To find all core files and delete them, use:
find / -name core -exec rm {} \\;
You can run it in a cron job each day to release the disk space.作者: 云杉上的蝴蝶 时间: 2007-08-18 22:51
此帖已收集到主题列表:lovely: