Questions tagged [ulimit]

181 questions
0
votes
1 answer

setting nproc in /etc/security/limit.conf prevents ssh login

I am trying to use /etc/security/limit.conf on Linux (Debian) to limit the number of processes per user. for starters, I tried to limit my own user processes by adding this to /etc/security/limit.conf: omry hard nproc 100 this locked my user out of…
Omry
  • 685
  • 1
  • 7
  • 16
0
votes
0 answers

Understanding ulimits / process limits, or maybe something else. New processes stop opening (fork errors)

I'm a little bit lost and need some help understand what exactly is happening with my server. So this is a Proxmox (Debian) server with several LXC containers running in it, and from time to time everything just starts failing because it seems that…
ItsJustMe
  • 1,001
  • 1
  • 8
  • 10
0
votes
0 answers

haproxy "max open files" reduces automatically after startup

I was trying to fix the following error being logged by haproxy... Proxy https-in reached process FD limit at 544. Please check 'ulimit-n' and restart ...and added LimitNOFILE=1024 in haproxy's systemd unit file. However, what I"m observing is that…
Saurabh Nanda
  • 489
  • 1
  • 8
  • 20
0
votes
1 answer

why OS can't automatically manage soft limit?

Yesterday oracle user had an error when he tried to login via ssh "error: do_exec_pty: fork: Resource temporarily unavailable". After I increased nproc soft limit he logged in. Then I started to reading about soft and hard limits and basing on this…
mustafa
  • 1
  • 1
0
votes
0 answers

"ulimit -r unlimited" in docker image. "cannot modify limit: Operation not permitted"

I'm trying to set my real-time priority to unlimited on my CentOS 7 (CentOS Linux release 7.9.2009 (Core)) image running in Docker. I'm executing (as root): ulimit -r unlimited I'm receiving the following error: bash: ulimit: real-time priority:…
0
votes
1 answer

How to setup HAProxy for more than 500,000 connections running inside a Docker Container on a Linux host?

I'd like my HAProxy Load Balancer to be able to handle at least 1M connections. I need this to deploy a stress test. I tried setting: maxconn 1000000 in my haproxy.cfg but HAProxy failed to start with: [haproxy.main()] Cannot raise FD limit to…
Janez Kuhar
  • 103
  • 6
0
votes
1 answer

CentOS: ulimit hard/soft limits keep reset to default values

On CentOS7 I am trying to change the values of ulimit as following: ulimit -Hn 262144 ulimit -Sn 100000 But the value is being reset to its default values just after signing out: [root@server001]# ulimit -Hn 4096 [root@server001]# ulimit…
Eng7
  • 127
  • 1
  • 7
0
votes
1 answer

/etc/profile[278]: ulimit: 1048576: limit exceeded [Operation not permitted]

[root@bteir airwide]# su - ins Last login: Wed Aug 12 22:31:40 CDT 2020 on pts/0 /etc/profile[278]: ulimit: 1048576: limit exceeded [Operation not permitted] ins ins> This log is kept on writing whenever I switch users. Please help to solve this.
0
votes
1 answer

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. For example, I tried to configure the gitlab…
Azeirah
  • 161
  • 6
0
votes
1 answer

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 yields 4096. I would like to increase those numbers…
hpy
  • 845
  • 3
  • 18
  • 28
0
votes
1 answer

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/init process lowers the limit to 65k. Here's a…
Limon
  • 111
  • 2
0
votes
1 answer

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 to them. Does it means that the limit 1 for…
beard black
  • 67
  • 2
  • 14
0
votes
1 answer

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.service; enabled; vendor preset: disabled) …
WebMaster
  • 113
  • 5
-1
votes
1 answer

available file handles is 0, how to increase

Since some days, we're getting "Too Many Open Files" within an Java application while loading files. So i start searching on Google, and increased fs.file-max to 200000 in my /etc/sysctl.conf. After this, i run sysctl -p. But, this not helped.…
Wouter0100
  • 103
  • 3
-2
votes
2 answers

Ignoring fork-bomb in Ubuntu

I got an homework assignment to write a program that checks how many process a user can create (working in Ubuntu). I wrote the code which seems fine in theory. The problem is that when I run it, the system closes it and doesn't allow it to run…
Danny
  • 1
  • 1
1 2 3
12
13