WAS
asked on
ulimit for core file size -new
Below are my system ulimit settings, the core file size is set to zero by default, but i got core dump file produced a week back with 2GB file size. Do you know what could be the reason.
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 1191936
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
$less /etc/security/limits.conf
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 1191936
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
$less /etc/security/limits.conf
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
check the /root/.bashrc for anything that over rides the ulimit -c setting (something like ulimit -u unlimited or something)
ASKER
nope i just checked it doesn't have any ulimit settings. Infact i check for all the other users also none of them have ulimit settings, the server that produces core dump is runs as different user, i start the server using sudo command. Ofcourse there is no issues with permissions so far.
For some reason my box is producing core dump file with 2gb size (regard less of ulimit settings), at the same time i am not able to successfully analyse the core dump file using my dump analyser bcz my analyser is failling in middle saying file size exceeded. It won't help even if i change my file size to unlimited.
Also there is enough disk space on the box
For some reason my box is producing core dump file with 2gb size (regard less of ulimit settings), at the same time i am not able to successfully analyse the core dump file using my dump analyser bcz my analyser is failling in middle saying file size exceeded. It won't help even if i change my file size to unlimited.
Also there is enough disk space on the box
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Or the Hard limit might be 'unlimited', but the size of the core file was only 2GB
ASKER
$ ulimit -Ha
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 1191936
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 1191936
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
in manpage:
A soft limit may be increased up to the value of the hard limit; a hard limit can NOT be increased once it is set;
If neither -H nor -S is specified, both the soft and hard limits are set.
So your previous ulimit setting for core is soft limit, which is increasable.
$ ulimit -Hc 0
To set it to hard limit.
A soft limit may be increased up to the value of the hard limit; a hard limit can NOT be increased once it is set;
If neither -H nor -S is specified, both the soft and hard limits are set.
So your previous ulimit setting for core is soft limit, which is increasable.
$ ulimit -Hc 0
To set it to hard limit.
ASKER
This doesn't answer my original question....not sure you understand my issue and question
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
are you talking about the soft limit (#* soft core 0
) in --> /etc/security/limits.conf . I doin't think my application is having any core file size settings.....but when i run $ ulimit -Ha
core file size (blocks, -c) unlimited
the hard limit is set to unlimited right ?
) in --> /etc/security/limits.conf . I doin't think my application is having any core file size settings.....but when i run $ ulimit -Ha
core file size (blocks, -c) unlimited
the hard limit is set to unlimited right ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for taking time to help me. Have a nice day