Operating System - Linux
1820475 Members
3263 Online
109624 Solutions
New Discussion юеВ

how to set core file size

 
file system
Frequent Advisor

how to set core file size

Hi all
I am going to set the ulimit parameter unlimited applied to all users.

as you see below I have linux box with core file size 0.

[root@web root]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 4
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 7168
virtual memory (kbytes, -v) unlimited

all tips are available, can you help me?
4 REPLIES 4
Vitaly Karasik_1
Honored Contributor

Re: how to set core file size

You should do it in two places:

1) /etc/security/limits.conf

2) sometimes there is "ulimit" commands in /etc/bashrc & bash_profile
file system
Frequent Advisor

Re: how to set core file size

when I editted /etc/security/limits.conf

Q1) Dose system have to reboot?

I want to change core dump file specific user, Not all users.

Q2)So when I do that what you tell me, Can the system generate core dump file next time.?

Vitaly Karasik_1
Honored Contributor

Re: how to set core file size

>Q1) Dose system have to reboot?

No, just re-login, PAM uses this file during user login.

>I want to change core dump file specific >user, Not all users.
read comments into limits.conf, it's doable


>Q2)So when I do that what you tell me, Can >the system generate core dump file next >time.?
for procecces of this user - yes.

After editing limits.conf and relogin just run "ulimit" - you should see unlimited core size.
Alpha977
Valued Contributor

Re: how to set core file size

Hello!

I think is best to set the core limit into the .bash_profile of the specific user, not to all users or to the system.