Advertisement

08.30.2007 at 07:04AM PDT, ID: 22797285
[x]
Attachment Details

Permanently Set ulimit on Linux (Ubuntu 7)

Asked by chsalvia in Linux, Linux Programming, Linux Administration

Tags: ulimit, ubuntu, linux, set

I am using Linux (Ubuntu 7.04)

I want to turn on core-dumping so I can debug programs that crash.  This is a simple matter of typing ulimit -c followed by the allowable size of the core dump.

However, this only sets ulimit temporarily.  As soon as I Iog off and then back on, ulimit is set back to 0.  How can I permanently set ulimit?

I tried placing the line ulimit -c 50000 into various files, such as bash.bashrc, /etc/rc.local, and /etc/init.d/rc.local, but all of this has no effect.  ulimit -c is always back to 0 when I log off/log on.

Start Free Trial
[+][-]08.30.2007 at 07:13AM PDT, ID: 19800283

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux, Linux Programming, Linux Administration
Tags: ulimit, ubuntu, linux, set
Sign Up Now!
Solution Provided By: Kdo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.30.2007 at 09:21AM PDT, ID: 19801595

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.30.2007 at 08:20PM PDT, ID: 19805730

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.30.2007 at 11:34PM PDT, ID: 19806335

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628