Questions tagged [ulimit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

Hitting a process limit, but unsure how

I run a server, mostly for using with random Docker containers and as a Gitlab-CI runner. Every once in a while, when the server has been running for a week or so, I run into process resource limits. ...
1
vote
0answers
39 views

How to interpret the number of open and max file descriptors for nginx?

I want to get the currently open file descriptors and upper limit of open file descriptors on an AWS Linux instance. The reason is to determine whether to increase the limits for nginx to have enough ...
1
vote
0answers
32 views

Cannot login with root after change limits.conf

I have changed my /etc/security/limits.conf and now cannot log in with root. I do NOT have physical access to server console. I DO know the root password. I have tried: ssh root@localhost 'echo "...
0
votes
1answer
73 views

Increasing ulimit open files not applied in RHEL 8.1

I have a fully-updated Red Hat Enterprise Linux (RHEL) 8.1 x86_64 system where, as a local user in a local terminal (i.e. not remotely via SSH), when I run ulimit -Sn it says 1024 and ulimit -Hn ...
0
votes
1answer
66 views

Increase open files limit of systemd service

I have systemd running inside a docker container and I'm trying to set Number of File Descriptors limit for the service. I set the limit on the docker container to 262k, but for some reason the /sbin/...
0
votes
0answers
21 views

Running 1000 connection a sec with dotnet core on ubuntu over ngnix

I need to configure a high traffic server. Currently I have about 700 connection per sec. I have a dotnet application that runs over ngnix on ubuntu 16.04 I have set the env with this documentation. ...
1
vote
1answer
19 views

OS limits ignored by bamboo

Our developers wants bamboo because of integrations to other Atlassian software and we have regularly problems with this buildserver. Often the buildjobs fail with OutOfMemory exceptions like this: ...
0
votes
1answer
33 views

for what need i max open file for service like mysql

For what reason do I need max_open_files for a service like mysql? I'm using one tomcat istance and only the tomcat service has access to my mysql databases. For my tomcat istance 20 users have access ...
0
votes
1answer
187 views

Docker failed to start

Today I have an issue with docker, It stopped and I cannot start it systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker....
2
votes
0answers
54 views

Permission issue preventing increase in Open Files Limit in Ubuntu

My Digital Ocean droplet's ulimit -n yields 1024. Now it's a dedicated machine with Ubuntu 16.04, 32GB Ram, 16 Cores. I want to crank it up to 65535. The problem: I followed a bunch of steps to ...
0
votes
2answers
77 views

Managed hosting, VPS & RAM - Virtual Memory?

I'm talking to a web host that's just starting up. They have shared hosting and managed VPS's. With shared hosting I understand that they have a script checking if a process goes over memory limits ...
0
votes
0answers
22 views

Where is the max_user_process value in SLES12.3?

There is a user on a SLES12.3 machine. If we "su - USERNAME" to it then give out a "ulimit -u" then we can see the value of the: -u The maximum number of processes available to a single user. (...
0
votes
0answers
21 views

How to change nofile parameter?

few days back i was getting Too many open files:keystore.jks error in my server. After searching in google i found that we have to increase the hard limit value(in my server both hard and soft are ...
0
votes
1answer
598 views

“Too many open files” Apache error even with increased ulimit and sysctl

I'm load testing an Amazon Linux EC2 instance running Apache (event MPM) and PHP-FPM using Locust. When I run my load test with 200 users (~28 requests per second), everything is fine. When I boost ...
0
votes
2answers
697 views

Apache2 full CPU Usage after exiting with error ('unable to create worker thread')

I've got my Apache2.4 (mpm_worker) instance exiting with following log: [Mon May 27 11:27:33.196177 2019] [core:warn] [pid 567365:tid 139765793668032] AH00045: child process 567368 still did not exit,...
1
vote
0answers
32 views

Why open files limits set correctly on dedicated server but not on KVM machines?

I have set open files for all users on a dedicated server A in /etc/security/limits.conf like below: * hard nofile 1048576 * soft nofile 983040 And in /etc/pam.d/common-session I have ...
1
vote
2answers
430 views

Is it safe to set a very high ulimit for a process?

I currently have the following entry in /etc/security/limits.d/90-nproc.conf based on Mongo DB's recommended ulimit settings. mongod soft nofile 64000 mongod soft nproc 64000 I ...
0
votes
1answer
1k views

Changing ulimit on systemd

I've found this link, showing how to change the ulimits on systemd. /etc/systemd/system/<servicename>.d/override.conf [Service] LimitNOFILE=49152 I found a website suggesting to change the ...
1
vote
0answers
575 views

why soft limit in /proc/{pid}/limits is different with ulimit -Sn

I found hard limit value in /proc/{pid}/limits match the output of ulimit -Hn while soft limit value doesn't my example output: tomcat@myLinux:/home/azhang$ ulimit -Sn 1024 tomcat@myLinux:/home/...
0
votes
1answer
749 views

Add LimitNOFILE on haproxy init script

I want to add open files limit to HAProxy 1.8 process to 1024576. But since I use version 1.8, I cannot add LimitNOFILE to init scripts, instead of systemd file. How can I add limitNOFILE to those ...
0
votes
1answer
66 views

debian and yum packages - is there a way we can set max mem % and CPU % limits?

Is there a hard limit we can set on Debian and RPM packages? My thought is to put 20% CPU, 20% Memory and 200 MB Disk Usage hard limits. So the package can play within those limits and not beyond that....
1
vote
0answers
354 views

change maximum number of open files for user on solaris 9

i need to change ulimit -n for the user permanently, on solaris 10 you can do projadd -K "process.max-file-descriptor=(basic,8192,deny)" proj.files but on solaris 9 projadd or projmod doesn't have -K ...
0
votes
1answer
932 views

ulimit for root keeps resetting

Using CentOS 6.6 In /etc/security/limits.conf I have set the following: * soft nofile 65535 * hard nofile 65535 root soft nofile 65535 root hard nofile 65535 In etc/security/limits.d/90-nproc.conf ...
0
votes
1answer
859 views

Where does Linux get ulimit values for certain users?

I see that different users in my Debian system has different max open files limits. I read the post but would like to get some understanding of the details. I do not have any settings into /etc/...
6
votes
2answers
660 views

How to change stack depth limits in /etc/security/limits.d/ and have the changes apply to services at boot

My system Series of Ubuntu 14.04.5 (x86_64) Servers, kept updated My application required I increase stack depth for postgres I created a file in /etc/security/limits.d/myapplication.conf The ...
0
votes
1answer
328 views

seting rtprio limit in system without PAM

I have minimal linux system without PAM (custom complied linux based appliance) and I want to set system wide (all users) rtprio to 99. My idea is to do this with help of sysctl. But looking on ...
0
votes
1answer
105 views

systemd DefaultLimitCPUSoft?

I discovered that on my Ubuntu 16.04 VPS a process is getting killed due to CPU usage. Running ulimit -t shows 86400. systemctl show | grep LimitCPU shows DefaultLimitCPU=18446744073709551615 ...
0
votes
1answer
1k views

RHEL setting a user specific max number of open files

I've set up below values in /etc/security/limits.conf in my RHEL machine. * hard nofile 65535 @student hard nofile 100000 Is this the correct approach when setting a user specific max number of ...
0
votes
1answer
913 views

Where is default soft limit config file debian?

I have a process running as root that is capped to 1024 ( in reality lsof shows me up to 1031 for it) open files but I don't find the file to modify this limit. Here is the output of cat /proc/PID/...
1
vote
1answer
2k views

Could not set limit for 'nofile' - “Operation not permitted” in a LXD unprivileged container

I am running a centos7 unprivileged LXD container on a ubuntu 17.04 host. I have a problem setting ulimit for NOFILE inside the container, if it is running in unprivileged mode. Bellow are the steps ...
0
votes
1answer
3k views

unable to set higher ulimit value for max open files

On Ubuntu 16.04 AWS system with 32 GB ram and 4 CPU, the following commands fail, root@ip-10-0-0-189:/home/ubuntu# sysctl -w fs.file-max=10000000 **(ten million)** fs.file-max = 10000000 root@ip-10-0-...
2
votes
1answer
1k views

How to set max file descriptors for a container?

I want to run elasticsearch in a container (namely nspawn) and it requires the number of max file descriptors to be higher than the default 1024. This is done, in the container, in the systemd ...
0
votes
1answer
539 views

Ubuntu 16.10 Server MariaDB (MySql) open_file_limit won't go higher than 16364

I'm running on Ubuntu 16.10 (yakkety yak) with MariaDB 10.x and experience the very same issue as Ubuntu 16.04 Server MySql open_file_limit won't go higher than 65536 with one exception, my open ...
1
vote
0answers
318 views

ulimit not reflected for Jenkins master which is running on Red Hat

I already saw "ulimit not reflected for jenkins slave" and the steps did not work for me. Please, help. I am using Jenkins on Red Hat and I have the same problem. I set ulimit to 99999 and when I ...
0
votes
0answers
151 views

Cannot login via ssh into CentOs machine after setting ulimit for open files to unlimited [duplicate]

I have set ulimit for open files on my centos machine by editing /etc/security/limits.conf post which I am unable to login into the machine. This was the change made in /etc/security/limits.conf file....
0
votes
2answers
2k views

mpm_prefork:error (11)Resource temporarily unavailable: AH00159: fork: Unable to fork new process

After having some issues I have rebuilt my server on a new, clean Fedora 24 platform. It's a fairly busy server, and now when it starts up, I get a flood of these messges in apache's error_log: [Thu ...
0
votes
0answers
440 views

xtrabackup: too many open files (more than 1048576)

When using xtrabackup to backup a mysql database with lots of tables, the proces fails with Error 24: ‘Too many open files’. This is a FAQ on the Percona website: https://www.percona.com/doc/percona-...
0
votes
1answer
223 views

Linux - Open file inheritance

For testing, I've changed my global open file limit to 3000: #sysctl -w fs.file-max=3000 fs.file-max = 3000 #cat /proc/sys/fs/file-nr 2016 0 3000 I've created some files: i=1; while [ "$...
1
vote
0answers
398 views

Nginx at startup does not have fd limit set in /etc/security/limits.conf

I have the following configuration for increasing the number of file descriptors available to processes of all users. cat /etc/security/limits.conf * hard nofile 65536 * soft nofile 65536 When the ...
1
vote
0answers
202 views

Unable to access Ubuntu EC2 ssh, Connection to Server-IP Closed

My server was having error due to high traffic and it showed this message often when I access the website Error: EMFILE: too many open files, open '/home/ubuntu/chat2/public/style.css' at Error (...
16
votes
1answer
12k views

Ubuntu 16.04 Server MySql open_file_limit won't go higher than 65536

I'm running Ubuntu 16.04 Server on XenServer and I'm running into an issue with MySql's open file limit. Here's what I've done so far: sudo nano /etc/security/limits.conf (reference) * soft nofile ...
7
votes
3answers
2k views

proc's limit and ulimit -f don't match

I have an issue where a process has a different max file size than the ulimit for a user. The log file for this process is basically not growing past 524288 proc: less /proc/20238/limits Limit ...
1
vote
0answers
412 views

Force nproc ulimit on non interactive user

I have a script that can be launched n times at the same time through php-fpm. php-fpm pool is set to run under a certain username and I want to limit the number of processes this username can launch. ...
4
votes
2answers
10k views

Getting Too many Open files error for Postgres

In Ubuntu 14.04 server on a JAVA application we are getting Too many Open files error for Postgres (Using Postgresql 9.5). We set the following in /etc/security/limits.conf * soft nofile 16384 * ...
1
vote
1answer
2k views

prlimit not found centos6.3

After finding out that ulimit -m no longer does anything on linux... I am now investigating the use of prlimit. I have found that this is supposed to exists as part of util-linux / util-linux-ng, I ...
4
votes
2answers
11k views

How do ulimit settings impact Linux?

Lately, I had a EAGAIN error with some async code that made me take a closer look at ulimit settings. While I clearly understand certain limits, such as nofile, others are still quite confused to me. ...
2
votes
1answer
4k views

How do I increase the open file limit on Linux?

I am using CentOS 7. I found out that the current value can be seen using $ ulimit -a (look for open files). Or just $ ulimit -n Then I try to edit these limits by editing the file at $ vim /etc/...
0
votes
0answers
2k views

File descriptor limit on CentOS 7

I am having hard time understanding resource limits (ulimit) with systemd. As I understand it, systemd brings some additional complexities to setting file descriptor limit. /etc/security/limits.d/99-...
0
votes
1answer
1k views

increase max_connections in mysql on ubuntu wily

I have ubuntu wily installed on my server. I'm trying to increase max_connections of mysql server to 1237 but when running mysql client and executing show variables like 'max_connections'; i get 214. ...
2
votes
1answer
2k views

How does nginx websocket proxy work?

I'm wondered about how nginx handles tons active websocket connections? There is a lot of limitations, like a number of open files, maximum of 65k TCP connections between IP <-> (IP, port) and so ...