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

0
votes
1answer
138 views

Increasing Yosemite maxfile limit for Application

I've been trying to up the maxfile limit and maxfileperproc limit on Yosemite, with no luck. I have created a sysctl.conf file in the etc folder, which has successfully increased the values when ...
3
votes
1answer
1k views

Open files limit does not work as before in OSX Yosemite

I just updated the Mac OS X to Yosemite, and now some applications do not work (IBM DB2). I know that I need to set the Open Files to 65000, however the command does not work. Andress-MBP:~ root# ...
1
vote
1answer
1k views

How do I check the ulimit for another user and change open files?

I have a process running as the gearman user and I want to change open files to avoid getting this nasty error ERROR 2014-09-12 17:49:14.000000 [ main ] accept(Too many open files) -> ...
1
vote
0answers
71 views

Why isn't “(ulimit -d 1000; firefox) &” working?

I'm trying to limit the memory usage of firefox to prevent it from stalling the whole system with problematic web sites. I tried, in bash: (ulimit -d 1000; firefox) & This should limit the ...
0
votes
0answers
32 views

Ulimit is set on second login, not first

I'm using Debian Jessie and I have a strange error connected with setting the limit of open files per process. I want to increase the default limit for certain user (me), so I added to ...
1
vote
1answer
590 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
1answer
32 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
421 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
107 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
309 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
0answers
533 views

How to increase maximum file open limit (ulimit) in Ubuntu?

Currently ulimit -n shows 10000. I want to increase it to 40000. I've edited /etc/sysctl.conf and put fs.file-max=40000. I've also edited /etc/security/limits.conf and updated hard and soft values. ...
3
votes
1answer
681 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
2k 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
766 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
455 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
864 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
340 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
0answers
69 views

what are sane open file descriptor limits on linux?

Where can I get good guidance on sane values for open file descriptor limits on linux. We have users asking for massive numbers as their limits and I am unsure of the impact of this and what should ...
0
votes
1answer
427 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
254 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 ...
4
votes
2answers
2k 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
134 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 ...
1
vote
1answer
180 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?
4
votes
1answer
3k 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 ...
4
votes
1answer
5k 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
3k 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 ...
11
votes
2answers
5k 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
0answers
251 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 ...
5
votes
1answer
482 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 ...
3
votes
2answers
782 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
0answers
333 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 ...
0
votes
3answers
4k views

XAMPP won't start Apache on Mac OS X 10.6.8 Snow Leopard

When I try starting Apache from the XAMPP control panel (Mac OS X 10.6.8 Snow Leopard), I get the following error popup and Apache won’t start: /Applications/XAMPP/xamppfiles/bin/apachectl: line 70: ...
15
votes
1answer
9k 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 ...
8
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
1answer
603 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 ...
3
votes
1answer
792 views

How can I increase the number of open filehandles in Linux?

I'm trying to increase the number open file handles on a server of mine and the usual places don't seem to be taking effect: root@dev:~# sysctl -p |grep file fs.file-max = 200000 root@dev:~# grep ...
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 ...
0
votes
2answers
3k 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
8k 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. ...
7
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) ...
39
votes
4answers
32k 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: ...
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
2answers
1k 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
1answer
409 views

Remaining number of open files in Linux

ulimit -a tells me I have a limit of 1024 open files, which is the default on my distro. Is there a way to show how many of these are currently used, or how many are remaining?
2
votes
2answers
616 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 ...
30
votes
2answers
30k 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 ...
2
votes
2answers
722 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
5k 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
2answers
3k 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 ...