Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Current limits' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Current limits
Authored by: MattHaffner on Oct 03, '03 12:55:39PM

You can check your current limits with the 'ulimit -a' command in bash (type 'help ulimit' for more info) or the 'limit' command in tcsh.

The core should be zero. I did some basic hunting and didn't find any obvious setting in /etc, although you could also check the files /etc/csh.* or /etc/profile* and /etc/bashrc to see if there is a limit command in there that something or someone put in.



[ Reply to This | # ]
core-settings in /etc/rc.common
Authored by: voldenuit on Oct 03, '03 03:14:47PM

The place to look for is in /etc/rc.common, at the end of the file, here's the relevant snip :

# Enable coredumps if requested.
##
if [ "${COREDUMPS:=-NO-}" = "-YES-" ]; then
ulimit -c unlimited
fi

To make sure there is nothing wrong with your defaults you should grep all files involved in startup (etc/rc*, StartUpItems...) for ulimit.
My /cores directory was completely empty and I like it that way :-)



[ Reply to This | # ]
core-settings in /etc/rc.common
Authored by: MattHaffner on Oct 06, '03 12:40:50PM

Wow, I don't know how this escaped my 'grepping' :)

Anyway, just to complete the thought for those that don't like tinkering that much, placing this line in your /etc/hostconfig file will **enable** core dumps:

COREDUMPS=-YES-

Make sure it's either not there (the default) or is set to -NO- if you don't want them.



[ Reply to This | # ]