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
80
questions
0
votes
0
answers
48
views
sudo su and sudo -i-u dont work as expected [duplicate]
I am migrating one of our servers from centos 7 to ubutnu 22.4 lts
Found an interesting issue:
set /etc/security/limits.conf is set set with:
* soft core unlimited
* hard core unlimited
created new ...
0
votes
1
answer
729
views
building with docker compose v2 fails but legacy docker-compose v1.29.2 and docker build succeed
I have this Dockerfile
FROM alpine/git as clone
WORKDIR /keycloak
RUN git clone https://github.com/maturbet-volta/nexus3-keycloak-plugin.git
WORKDIR /cargo
RUN git clone https://github.com/sonatype-...
2
votes
0
answers
203
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 ...
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 ...
0
votes
0
answers
88
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 ...
2
votes
1
answer
6k
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 ...
8
votes
4
answers
29k
views
How do I increase the max open files in macOS Big Sur?
I have heard
sudo launchctl limit maxfiles 64000 unlimited
And
conf=/etc/sysctl.conf
if sudo cat $conf | command rg kern.maxfiles ; then
ecerr "kern.maxfiles is already set in $conf"
else
...
0
votes
0
answers
42
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?
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.
...
0
votes
1
answer
275
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 ...
2
votes
1
answer
412
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). ...
0
votes
1
answer
932
views
How can I increase the process limit (ulimit -u) for X users on Fedora?
Between having, ahem, "a few" tabs open in Firefox and occasionally having to use Chromium, which is a crazy process hog (something like 12 processes per tab), I often find myself hitting the process ...
0
votes
1
answer
164
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 ...
1
vote
0
answers
424
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 ...
0
votes
1
answer
313
views
Relationship of "ulimit -a" to fs.file-max
I am on an amazon linux ec2 instance and need to increase the files limit (to run spark).
It had been my recollection there were a way to do something like
ulimit -n 8192
But that is not "taking" ...