Questions tagged [ulimit]

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

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
5k views

Increase number of open files in mac high sierra

On a mac high sierra 10.13.3 I have 256 open files. I want to raise it and I open a terminal and enter sudo launchctl limit maxfiles 1000000 1000000 This doesnt change anything when I enter ulimit ...
Bick's user avatar
  • 519
2 votes
0 answers
186 views

Ulimit no file just won't change (Ubuntu)

I followed everything I could find on how to change the maximum value of ulimit nofile but it's still stuck at 4096. Both my /etc/systemd/system.conf and /etc/systemd/user.conf have the line ...
Antoine Olivier's user avatar
2 votes
1 answer
4k views

Where can I find the default docker ulimit settings?

I have been trying to understand an issue I've had when running roribio16/alpine-sqs docker image on one of my machines. Whenever I try to run the image without specifying any other settings, docker ...
Hulatime's user avatar
2 votes
1 answer
369 views

What is the history behind `ulimit -m` / RLIMIT_RSS not working?

According to man setrlimit (which is what man ulimit directs me to), RLIMIT_RSS Specifies the limit (in bytes) of the process's resident set (the number of virtual pages resident in RAM). ...
Jason Gross's user avatar
2 votes
1 answer
2k 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 ...
user12002221's user avatar
1 vote
0 answers
1k views

How to limit sshd/sftp connections or memory use in Linux?

I'm working on an embedded Linux system, and I found it will report 'page allocation stall' while I'm downloading file via sftp. Please refer to this video for detail. I've tried the following ways to ...
Qiao's user avatar
  • 111
1 vote
0 answers
365 views

Need a solution to handle 100 parallel requests in nginx

I have Nginx (in a 16 core, 64GB RAM, centos 7 box) that has to handle more than 100 parallel requests. I tried the following: set the ulimit using /etc/systemd/system/nginx.service.d/override.conf ...
Ben Ross's user avatar
1 vote
0 answers
2k views

Increasing ulimit open files and max procedures

I'm working on a test machine and I want to increase ulimit's max open files and max procedures in macOS Sierra. I run sudo ulimit -n 100000 120000 and sudo ulimit -u 10000 12000. no error shows. But ...
Davis.S's user avatar
  • 11
1 vote
0 answers
459 views

How to Increase Number of Open Files Limit in Linux

I'm trying to increase the number of files that can be opened by a user, but I keep getting the error: bash: ulimit: open files: cannot modify limit: Operation not permitted Currently it's at: ...
Program-Me-Rev's user avatar
1 vote
1 answer
776 views

Unable to enable core dumps (ubuntu/ARM)

I'm struggling to enable core dumps in Ubuntu 14.04 LTS (ARM) running on an nVidia Jetson TX1 SBC. I've done all of the usual stuff, including suggestions from here and here. There is plenty of space ...
mshildt's user avatar
  • 113
1 vote
0 answers
510 views

What is the difference between ulimit -r and -e?

What is the real-time scheduling priority mean (ulimit -e) ,and how to use it ? -r The maximum real-time scheduling priority -e The maximum scheduling priority ("nice")
nihan's user avatar
  • 11
1 vote
0 answers
230 views

ulimit seems to freeze bash script

I'm running a bash script that runs multiple small apps with different inputs. Some of these apps have bugs (e.g., never finish) and so I use ulimit to get the output or an error from all of them. In ...
Fernando César's user avatar
1 vote
1 answer
858 views

how does GDM set ulimits (Fedora)?

On Fedora FC20. /etc/security/limits.conf has: * soft nofile 60000 * hard nofile 60000 * soft nproc 30000 * hard nproc 30000 After logging in through GDM, and opening a shell, the limits are 60000 ...
Pawel Veselov's user avatar
1 vote
0 answers
427 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 /etc/security/...
nuoritoveri's user avatar
1 vote
2 answers
4k 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 ...
AMIT 's user avatar
  • 557
1 vote
0 answers
463 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 ...
Eduardo Bezerra's user avatar
1 vote
0 answers
498 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 ...
Dragos's user avatar
  • 46
1 vote
3 answers
8k 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: ...
Paul Masri-Stone's user avatar
0 votes
0 answers
78 views

Eliminate limits for port connection for Redis on CentOS

I am using Redis caching server on CentOS, where Redis accepts clients connections on the configured listening TCP port. I am trying to figure out the limits applied by the operating system to the ...
Eng7's user avatar
  • 115
0 votes
0 answers
38 views

How to open 100 file with one proccess?

I know the output of ulimit -S -n is the number of fd that a process can handle or create. How can I open files more than that number to reach the limit of my system with one process ID?
Ali's user avatar
  • 15
0 votes
1 answer
2k views

Too many open file with high limits

With Ubuntu 18.04.4 LTS (Linux 5.3.0-62-generic), I have very often "Too many open files" error. For example, I have to close web browser to use / build / compile with Android Studio. ...
François Raoult's user avatar
0 votes
1 answer
272 views

ulimit -f control file size for docker container's external host volume?

I am running a database (CouchDB) from a Docker container on Unix (AWS EC2). For the database files, I have created an 'external' (ie. external to the container, but on the same host) volume which is ...
robert smith's user avatar
0 votes
1 answer
157 views

inconsistency while using ulimit

I am running into an inconsistency while using ulimit. I make changes directly to the conf file "/etc/security/limits.conf". Whenever I use just user names, I have zero problems. For example: root ...
user3808748's user avatar
0 votes
0 answers
518 views

ulimit not working properly

i am trying to limit the memory usage of a process using ulimit ulimit -Sv 100000 ulimit -St 10 fakechroot ./compiledfile i am running the command in the same terminal (i am using ubuntu 16.04) and ...
mursalin's user avatar
  • 101
0 votes
0 answers
6k 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. ...
theharshest's user avatar
0 votes
1 answer
1k 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 ...
Cheetah's user avatar
  • 1,253
0 votes
0 answers
623 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 ...
Andrew Gargan's user avatar
0 votes
0 answers
3k 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 ...
kamalakar's user avatar