Questions tagged [ulimit]

181 questions
0
votes
4 answers

setting ulimit and ubuntu 8.04

We have two ubuntu 8.04 servers. With the database server I set the table_cache to 1000 however when I restart mysql the status only shows 257 and the open files limit says 1024 I adjusted ulimit by doing ulimit -n 8192 and then restarting mysql;…
Wizzard
  • 342
  • 1
  • 4
  • 12
0
votes
1 answer

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 processes ? *P.S: I had changed openfile on…
0
votes
1 answer

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. On Googling I found bind and pam.limits can be…
Mir Adnan
  • 105
  • 3
0
votes
1 answer

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 I have set this: * soft nproc …
Elite_Dragon1337
  • 216
  • 1
  • 2
  • 10
0
votes
1 answer

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/security/limits.conf but: mysql seems to follow kernel…
origaminal
  • 101
  • 2
0
votes
1 answer

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 output of sysctl -a, I didn't see any parameter…
user81604
  • 11
  • 2
0
votes
1 answer

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 DefaultLimitCPUSoft=86400 I talked to the provider…
Gaspy
  • 3
  • 1
0
votes
1 answer

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 open files? Should the * hard nofile value be always…
thanuja
  • 211
  • 1
  • 2
  • 6
0
votes
1 answer

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-0-189:/home/ubuntu# ulimit -n 2000000 **(2…
suresh
  • 103
  • 1
  • 4
0
votes
1 answer

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 file limits is 16364 cat /proc/$(pgrep mysql)/limits |…
Joakim
  • 39
  • 2
  • 7
0
votes
0 answers

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

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. nofiles unlimited A tail of verbose output…
Rohit Kumar
  • 101
  • 1
0
votes
2 answers

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 Dec 08 19:30:26.954314 2016] [mpm_prefork:error]…
Mike Bobbitt
  • 137
  • 2
  • 8
0
votes
0 answers

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:…
svdr
  • 31
  • 4
0
votes
1 answer

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 [ "$i" -le 1000 ]; do : >> "$i"; i=$(($i + 1));…
jouell
  • 621
  • 1
  • 5
  • 20
0
votes
0 answers

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-name.conf couchbase hard nofile 100000 couchbase…
NefariousOctopus
  • 579
  • 1
  • 5
  • 9