Questions tagged [ulimit]

181 questions
8
votes
3 answers

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 Soft Limit Hard Limit …
Dakota Brown
  • 181
  • 1
  • 3
8
votes
1 answer

limits.conf setting doesn't 'stick'

Trying to get the equivalent of ulimit -n 20000 on a high load web server, however the /etc/security/limits.conf on ubuntu hardy doesn't seem to stick. here is what I set in the config file. root soft nofile 20000 root …
Brandon Helwig
  • 183
  • 1
  • 6
8
votes
3 answers

determine ulimit for root user

we believe we have increased the max open file descriptors for the root user. This was done by adding this line to /etc/security/limits.conf: * - nofile 2048 We think we've confirmed that the root user's limit was increased…
andersonbd1
  • 115
  • 1
  • 1
  • 7
8
votes
2 answers

How to configure linux file descriptor limit with fs.file-max and ulimit

Server applications running on linux often require large quantities of open file handlers, for ex. HBase ulimit, Hadoop epoll limit This wiki entry should serve as documentary for Linux file limits configuration. What is soft vs. hard limit? How…
Maxim Veksler
  • 2,725
  • 10
  • 28
  • 32
7
votes
1 answer

Are ulimits inherited by the shell, by the user, or a combination?

When a process spawns a subshell, how is the ulimit inherited? Is it by user, by shell, or a combination? Specifically, this was found in the context of HP Server Automation jobs failing on some managed AIX devices because of an interaction between…
warren
  • 18,369
  • 23
  • 84
  • 135
7
votes
1 answer

centos/redhat: change open files ulimit without reboot?

The hard limit of the number of open files is set to 1024 on my machine. I changed /etc/security/limits.conf and added 'idror hard nofile 65000'. In my shell I tried ulimit -n 65000. I get 'ulimit: value exceeds hard limit' In my shell I tried…
IttayD
  • 1,087
  • 4
  • 11
  • 14
7
votes
5 answers

limits.conf not being applied.

I have the following lines in /etc/security/limits.conf * soft nofile 32768 * hard nofile 65536 root soft nofile 32768 root hard nofile 65536 The…
diolemo
  • 283
  • 1
  • 2
  • 7
7
votes
3 answers

samba stuck at maximum of 1024 open files

I'm running a Ubuntu 10.04 (lucid) samba fileserver. I have a Windows 7 client which opens a large number of files while doing a copy of thousands of tiny files at once. It receives the error "Too many open files" at which point waiting a few…
cecilkorik
  • 455
  • 1
  • 4
  • 13
7
votes
5 answers

How to set ulimits in Solaris 10

I normally use pam_limits.so and /etc/security/limits.conf to set ulimits on file size, CPU time, etc. for the regular users logging in to my server running Ubuntu. What is the best way of doing something similar with Solaris 10? I think it is done…
James Bradley
6
votes
2 answers

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 myapplication.conf file has the line: * -…
James T Snell
  • 463
  • 2
  • 11
6
votes
2 answers

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 * hard nofile 16384 root soft nofile 16384 root hard …
Geo
  • 575
  • 3
  • 9
  • 23
6
votes
2 answers

"open files" ulimit: controlling via limits.conf

I'm banging my head on this, and I can't understand why it's not working. I'm hoping that someone can shed light on this, or failing that, give me some suggestions for avenues of investigation. I've got a Red Hat 7.3 system (don't ask) where it's…
MadHatter
  • 79,770
  • 20
  • 184
  • 232
6
votes
1 answer

How to set systemwide ulimit on ubuntu

I want to set systemwide ulimit on ubuntu (all processes, all users). How can I set it? thanks JP
JP19
6
votes
2 answers

It should be set to 65000 to avoid operational disruption

I'm following Taking Solr to Production | Apache Solr Reference Guide 8.5, however unable to overcome warning while restarting solr service: # service solr restart *** [WARN] *** Your open file limit is currently 1024. It should be set to 65000 to…
alexus
  • 13,112
  • 32
  • 117
  • 174
5
votes
1 answer

How to apply memory limits to all cron jobs?

On a shared server (Debian Jessie), there are some memory limits (and other limits, like number of processes) that apply for a group of users, configured in /etc/security/limits.conf. It seems that those limits do not apply to processes started by…
moritz
  • 151
  • 1
  • 5
1 2
3
12 13