这里就是应该是ulimit来限制的,不过单位好像是blocks?102400 blocks的话,看你的blocks多大了,有可能确实是几个G?

在 2014年5月8日 下午7:11,代晋玮 <daijinwe...@gmail.com> 写道:
> 大家好,用gdb的时候,
>>gdb
>> attach pid
>> generate-core-file
>  可以导出core:core.pid
>
>>detach
>
> 最后看了一下,core 文件有好几个G呢。
>
>
> 我想限制一下core file的大小,用unlimit -c 102400,后,导出的core文件还是好几个G
>
> 请问一下大侠们,怎么限制core 文件的大小呢
>
> --
> 您收到此邮件是因为您订阅了Google网上论坛中的“广州 GNU/Linux 用户组”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到gzlug+unsubscr...@googlegroups.com。
> 要发帖到此论坛,请发送电子邮件至gzlug@googlegroups.com。
> 通过http://groups.google.com/group/gzlug访问此论坛。
> 要查看更多选项,请访问https://groups.google.com/d/optout。

-- 
您收到此邮件是因为您订阅了 Google 网上论坛的“广州 GNU/Linux 用户组”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到gzlug+unsubscr...@googlegroups.com。
要向此网上论坛发帖,请发送电子邮件至 gzlug@googlegroups.com。
通过以下网址访问此论坛:http://groups.google.com/group/gzlug。
要查看更多选项,请访问 https://groups.google.com/d/optout。

回复