0
votes
1answer
10 views

How to check core dump enabledness status in bash?

$ ulimit unlimited $ sleep 2 && killall -SEGV cat & [1] 11358 $ cat Segmentation fault $ ulimit -c unlimited $ ulimit unlimited $ sleep 2 && killall -SEGV cat & [1] 11462 $ cat ...
1
vote
1answer
78 views

modify and apply limits.conf without reboot

I have added a line in /etc/security/limits.conf to increase the number of open files. * hard nofile 4096 root hard nofile 16384 However when I run ulimit -n it says 1024 which is the default ...
0
votes
0answers
50 views

How to change limits of non-interactive process?

I am trying to change the RTPRIO limit of a process that's run at startup. I have found 3 ways to change process interactively: setrlimit ulimit /etc/security/limits.conf However these only seem ...
1
vote
1answer
89 views

Core dump generation on Linux

Something very perplexing is going on, with respect to my box. Below are my settings in /etc/sysctl.conf: kernel.core_pattern = core kernel.core_uses_pid = 1 In /etc/profile, I have this: ulimit ...
0
votes
1answer
1k views

values set in limits.conf are not working

I set some values in /etc/security/limits.conf as below: * hard stack 204800 * hard nofile 8192 Then rebooted the server. Now the ulimit command still lists some old/default values: # ...
0
votes
2answers
422 views

Why changes to /etc/limits don't work on an embedded system

I am trying to provide support for core dump on my ARM based target. I have read about both /etc/limits and /etc/security/limits.conf. My target file system doesn't have the latter one on to it. So I ...
0
votes
0answers
216 views

Changes to /etc/security/limits.conf are automatically rolled back after few seconds

I need to set soft and hard file descriptors limits for a user in /etc/security/limits.conf. webuser soft nofile 65536 webuser hard nofile 131072 I am able to save the changes in limits.conf but, ...
0
votes
2answers
366 views

Does ulimit change resource limits at runtime?

Does ulimit change the limits of running programs? Are their specific resources which can not be changed at run time? If ulimit doesn't change limits at run time, does this mean that you have to ...
2
votes
2answers
913 views

ulimit nofiles and lsof

If I do an lsof | grep user | wc -l I get a number returned in the 25,000 range. If I check ulimit -a user nofiles is set at 1024. Can someone help me to understand the number of open ...
1
vote
1answer
147 views

Why does “ulimit -t 5” have no effect on “less” or “man”, but work on “yes”?

If I run $ ulimit -t 5 $ yes then yes gets killed after 5 seconds, but man and less/more don't. Why are those two immune to ulimit?
0
votes
2answers
2k views

pipe: too many files open renders entire OS completely useless

I'm running Ubuntu 12.04, and I am having a major problem. Two separate times today, one of my open gnome-terminal sessions locked up and printed the error pipe: too many open files I realize ...
5
votes
1answer
393 views

Locked out of host after reaching some ulimit

So, I have a sudoer account in a remote host, in which I create a process with thousands of threads and sockets. The thing is, if I create too many threads/sockets (not sure which one, it might even ...
0
votes
2answers
2k views

coredumps don't work after enabling them in /etc/security/limits.conf on Debian

I have some init scripts that launch some daemons that I wrote. I want Linux to generate a coredump anytime something crashes. I activated coredumps in /etc/security/limits.conf by adding the next ...
1
vote
2answers
6k views

How to increase stack limit permanently without restarting

I need to increase the default stack size on Linux. As I know there are usually two ways: ulimit -s size /etc/security/limits.conf The ulimit method only works as long as I am logged in. ...
1
vote
3answers
880 views

how to limit resource in Linux

I've posted a question about this few hours ago on Stack Overflow: Linux bash inline command to execute a program and limit the resource As I know, to limit the resource I can use ulimit ...
2
votes
2answers
565 views

Linux: Make “ulimit” limits be cumulative across spawned “subprocesses”

Let's say I have program #1 launching program #2 which is launching program #3. If I call ulimit -t 10 before calling program #1, then EACH program will be alloted 10 seconds of CPU time. Could I ...