Questions tagged [ulimit]

ulimit gets or sets the upper limit for resources available to the current shell.

356 questions
19
votes
5 answers

React Native + Jest EMFILE: too many open files error

I am trying to run Jest tests, but I'm getting the following error: Error reading file:…
Mike Hedman
  • 1,391
  • 1
  • 11
  • 30
19
votes
3 answers

What is the max opened files limitation on Linux?

On Linux, when a process opens a file, the OS will check the max opened files limitation. If the limitation was 1024, what's the number mean? Does it represent the number of files opened by the process the number of files opened by the user who…
kino lucky
  • 1,365
  • 4
  • 15
  • 24
17
votes
3 answers

How can I raise the limit for open files in Ubuntu 20.04 on WSL2?

My setup looks as follows: Windows 10, Release 1909 (Build 18363.1082), using WSL2 with an Ubuntu 20.04 environment. Everything works nicely most of the time, but there are some issues I cannot manage to solve. During development using parcel (React…
donmartin
  • 1,753
  • 2
  • 15
  • 30
16
votes
3 answers

Too many open files ( ulimit already changed )

I'm working on a debian server with tomcat 7 and java 1.7. This is an application that recieves several TCP connections, each TCP connection is an open file by the java process. Looking at /proc/pid of java/fd I found that, sometimes, the number of…
slacker
  • 478
  • 1
  • 3
  • 10
15
votes
2 answers

bash fork error (Resource temporarily unavailable) does not stop, and keeps showing up every time I try to kill/reboot

I mistakenly used a limited server as an iperf server for 5000 parallel connections. (limit is 1024 processes) Now every time I log in, I see this: -bash: fork: retry: Resource temporarily unavailable -bash: fork: retry: Resource temporarily…
user2662165
  • 189
  • 1
  • 1
  • 10
14
votes
2 answers

Ubuntu 16.04 systemd redis issues with ulimit

I have been having issues with our new redis server after swapping from Ubuntu 14.04 to 16.04. The configuration of the open files limit using all the guides says to change the /etc/security/limits.conf with the following settings * soft nofile…
Ollie
  • 1,140
  • 8
  • 26
14
votes
1 answer

How to set ulimit -n from a golang program?

My purspose was to set ulimit -n from within a golang program so that I do not have to set it globally but restrict it within the program. Found systemcalls setrlimit and get rlimit for the same. (http://linux.die.net/man/2/setrlimit) But when I…
George Thomas
  • 1,246
  • 2
  • 11
  • 14
13
votes
2 answers

Need to "calculate" optimum ulimit and fs.file-max values according to my own server needs

Need to "calculate" optimum ulimit and fs.file-max values according to my own server needs. Please do not conflict with "how to set those limits in various Linux distros" questions. I am asking: Is there any good guide to explain in detail,…
Kunthar
  • 472
  • 1
  • 5
  • 15
13
votes
2 answers

Why ulimit can't limit resident memory successfully and how?

I start a new bash shell, and execute: ulimit -m 102400 ulimit -a " core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 20 file size (blocks, -f) unlimited pending…
sean
  • 1,252
  • 3
  • 14
  • 29
13
votes
4 answers

Find ulimit -a for other users

Is anyone aware of a way to find the "ulimit -a" values for another user in Linux? I want user A to be able to check User B's ulimit values. Assumptions are the User A and User B are non-root users. Thanks in advance
gr8odinsraven
  • 143
  • 1
  • 1
  • 6
12
votes
1 answer

Error: EMFILE: too many open files, watch, unless I use sudo

Description Recently I've run into an problem. I am not able to run yarn start in element-web directory, I get these errors. Originally I thought it had something to do with element-web itself so I created an issue. Some time after that I tried to…
Šimon Brandner
  • 561
  • 1
  • 5
  • 10
10
votes
1 answer

How to set the size of the C stack in R?

I'm trying to use the spread() function from the tidyr package in R on a dataframe that has about three million observations. It's returning the following error message: Error : C stack usage 26498106 is too close to the limit When I run…
s.willis
  • 347
  • 2
  • 11
10
votes
1 answer

Resource limits on Windows?

What are the Windows equivalents to the resource limit mechanisms exposed on Unix systems by Python's resource module, and POSIX setrlimit? Specifically, I'm limiting processor time for a child process to several seconds. If it hasn't completed…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
9
votes
1 answer

ulimit -t under ubuntu

I am running Ubuntu Linux (2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux) and it seems that the command "ulimit -t" does not work properly. I ran: ulimit -t 1; myprogram where 'myprogram' is an endless loop. I expected…
Tsf
  • 1,339
  • 5
  • 17
  • 29
9
votes
0 answers

Is fs.file-max and ulimit nofile in AWS ECS limited by the EC2's fs.file-max and nofile?

I am attempting to run a few load tests on Nginx running on ECS and I have set the ulimit to a higher value (777001) via the task definition as mentioned in the documentation. Inside the container, the ulimit -Hn command and cat…
1
2
3
23 24