ulimit provides control over the resources available to the shell and to processes started by it, on systems that allow such control

learn more… | top users | synonyms

1
vote
1answer
8 views

Other ways to increase max open files?

I have an application which keeps giving me the following error. tail: inotify cannot be used, reverting to polling: Too many open files I have already followed all the advice I've been able to ...
0
votes
2answers
3k views

XAMPP won't start Apache on Mac OS

When I try starting Apache from the XAMPP control panel (Mac OSX Snow Leopard), I get the following error popup and Apache won't start: /Applications/XAMPP/xamppfiles/bin/apachectl: line 70: ulimit: ...
13
votes
1answer
7k views

setting ulimit on a running process

I launched a server application and I want to run it for a long time for testing purpose. Unfortunately, I forgot to set before ulimit -c unlimited to catch an eventual crash and inspect it. Is there ...
28
votes
3answers
23k views

Increase the maximum number of open file descriptors in Snow Leopard?

I am trying to do something that requires a large number of file descriptors sudo ulimit -n 12288 is as high as Snow Leopard wants to go; beyond this results in /usr/bin/ulimit: line 4: ulimit: ...
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 ...
23
votes
2answers
24k views

How to change default ulimit values in Mac OS X 10.6?

Mac OS X limits number of processes to 266 and open files to 256. Sometimes this is problem; 256 open files and 266 processes aren't that much. How it's possible to change default ulimit values in ...
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 ...
3
votes
1answer
364 views

Does “ulimit -Su” limit the number of user processes created in interactive login subshells and tmux sessions created therein?

A few months ago, I wrote a set of bash scripts utilizing tmux to create a simple IDE on an AIX 7.1 server. There is a bug in one of my scripts that will sometimes generate user processes very rapidly ...
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: # ...
10
votes
2answers
3k views

Make ulimits work with start-stop-daemon

I have an init.d script that starts an app using start-stop-daemon --chuid SOME_SYSTEM_USER. That is, the app runs under a different user, not root. Problem is, the app needs special limit settings ...
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
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 ...
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 ...
3
votes
0answers
622 views

Cannot increase maxfiles limits on Mac 10.7

I an only set lower values for the launchctl limit maxfiles. I try launchctl limit maxfiles 2048 2048 and nothing changes: $ launchctl limit maxfiles maxfiles 500 500 $ launchctl limit ...
0
votes
1answer
230 views

Do I have to restart my machine for ulimit - u to take affect?

So I have an external 3rd party application which runs on Java. The JVM is getting a load of OutOfMemeory errors and their support team suggested I raise the ulimit - u from he default 1024 to 4096 ...
0
votes
1answer
177 views

What's the meaning of ulimit -a output?

What each of the values listed in the output of ulimit -a represents? For example, what's the meaning of the following output (I've removed the obvious ones)? core file size (blocks, -c) 0 ...
0
votes
1answer
226 views

Why do we need hard and soft limit in open file count?

I was reading a separate SU question on setting ulimit value and the answer from Gordon mentioned something about hard and soft limit on open file descriptor count. Just curious, why do we need a hard ...
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 ...
3
votes
2answers
663 views

daemontools and ulimit

I have a daemontools service whose /service/myservice/run contains: #!/bin/sh exec setuidgid someuser somecommand Now, if I run this as a script directly from a root shell, somecommand will get a ...
1
vote
1answer
115 views

Best folder configuration for application that opens around 1 million files and ulimit problems

I have an application that creates 16^5 files (1048576). I can configure it to create all them in the same folder or separate them in whatever way I want (having 1, 2, 3 or 4 subfolders on each ...
3
votes
1answer
2k views

Mac os x 10.7.4 process limit

I have a 709 max user process. I want to double it, or more. First: ulimit > ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size ...
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?
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 ...
4
votes
1answer
4k views

Why does limiting my virtual memory to 512MB with ulimit -v crash the JVM?

I am trying to enforce maximum memory a program can consume on a Unix system. I thought ulimit -v should do the trick. Here is a sample Java program I have written for testing : import java.util.*; ...
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 ...
0
votes
0answers
199 views

How to find out the available (and used) user resources?

With ulimit, we can find out how many open files, running processes etc. at most the user can have at the same time. My question is: how can we find out how much of these limits are being used and how ...
1
vote
0answers
305 views

Adobe flash on Linux 64bit: “Movie not loaded” and maximum stack-size

I was experiencing problems with all flash content (tried Firefox/Chromium/Opera, Ubuntu/Fedora and several Flash releases to no avail). While trying to playback any flash-movie, no video/sound ...
7
votes
1answer
1k views

ulimit does not obey me

Well.. $ ulimit -s 8192 $ sudo ulimit -s 16384 $ ulimit -s 8192 Why does ulimit disrespect me in such a barbaric way? Lion, by the way.
3
votes
0answers
546 views

limits.conf ulimits not being applied to chrooted processes

We allow users to execute scripts on our servers. Our security model involves chrooting them. We want to be able to apply ulimit restrictions to them, and the best way to do it would seem to be in ...
1
vote
0answers
2k views

Update ulimit parameters on ubuntu with out restarting

I am trying to update ulimit open files limit from 1024 to 30000. but i need this change with out restarting the server? Even on restarting the server this changes are not reflected followed this ...
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. ...
6
votes
1answer
3k views

strange behaviour with ulimit on Mac OS X 10.6

I get some very strange behaviour when working with ulimit. I just open up a new shell Hector:~ robertj$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) ...
1
vote
1answer
1k views

ulimit soft limit for file descriptors - for a non-root user on CentOS 5.6

I am needing to increase the soft limit for "file descriptors", and make it effective for a non-root user (lets say user1). Ran these commands, while logged in as user1: >ulimit -a core ...
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 ...
2
votes
2answers
674 views

ulimit broke my server

I ran "ulimit -v 75" to get SBCL working, and now nothing will run on my server. $ sbcl Killed $ vi Killed $ man ulimit Killed $ ulimit -v 256 -bash: ulimit: virtual memory: cannot modify limit: ...
6
votes
2answers
4k views

What parameters has ulimit?

I see in examples, that the Option -u is used, but I cannot find a documentation, that says what that option means. man ulimit shows the manual for a C-function. What options has ulimit and what does ...
3
votes
1answer
2k views

ulimit not limiting memory usage

When writing program, there are times when a runaway program slurps half of my RAM (generally due to practically infinite loops while creating large data structures), and bringing the system to become ...