Questions tagged [ulimit]

181 questions
1
vote
0 answers

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. ps aux|grep fpm root 7165 0.0 0.0 849288…
w00t
  • 1,164
  • 3
  • 19
  • 35
1
vote
1 answer

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 have this installed on my system, however find /…
Matt Clark
  • 685
  • 1
  • 10
  • 26
1
vote
1 answer

How does pam_limits decide on the default limits?

In a linux system that is using the pam_limits module, but has nothing configured in /etc/security/limits.conf (or /etc/security/limits.d/*) how does pam_limits decided on what limits to implement?
1
vote
1 answer

How do I increase the curr_connections limit using memcache?

I am using a server with Centos 6.5 64 bits Kernel 2.6.32 and 64 GB RAM and 12 threads cores, and I cannot get increase the current connections used in memcache. This is my STATS output: # echo stats | nc 127.0.0.1 11211 STAT pid 356091 STAT uptime…
shakaran
  • 356
  • 1
  • 7
  • 19
1
vote
1 answer

ulimit value when output is "hard" or "soft"

Can someone explain to me how can I determine actual values of for ulimit when the output of ulimit command is "hard" or "soft". This is on AIX machine. For example: # ulimit -f hard And on another machine: $ ulimit -m soft Since i don't have root…
CyberMuz
  • 335
  • 1
  • 2
  • 8
1
vote
1 answer

Process specific ulimit still low after changes to soft and hard ulimits

I'm having trouble with increasing the open-files ulimit (ulimit -n) for a particular process on a Debian 6 server. AFAIK I've done everything to change the servers hard and soft limits in this case, (ulimit -n shows 200000), but when I check the…
UpTheCreek
  • 1,628
  • 10
  • 32
  • 48
1
vote
1 answer

How do I configure Linux to log when ulimits are hit?

For example, say I'm hitting nproc. I would expect a log message to appear /var/log/messages or similar, but it looks like that needs to be configured. How do I do that? I can't find anything relevant on google so far. OS is CentOS 6.4. Thanks!
cat pants
  • 2,273
  • 10
  • 35
  • 46
1
vote
1 answer

Changing ulimit on ubuntu 12.04 Never works

I am working with hadoop and need to change number of open files ulimit -n. I have seen similar questions on stackoverflow and elsewhere and have tried everything in those answers, but it still does not work. I am working with ubuntu 12.04 LTS. Here…
Ravi Bhatt
  • 166
  • 2
1
vote
3 answers

How to set the ulimit (fd) when you fork a process?

Normally /etc/security/limits.h only work when you login into a shell. How about when you fork a process in Linux, where is the value of Max open files of /proc/PID/limits is controlled by?
Howard
  • 2,135
  • 13
  • 48
  • 72
1
vote
1 answer

Increasing the maximum amount of open files for libvirt

For an experiment I'm trying to start as many VM's as possible through libvirt, however with a little over 1000 VM's running I get an error saying: "Failed to create pipe: Too many open files". Any idea of how to fix this? I've set ulimit soft and…
Jon
  • 11
  • 1
  • 2
1
vote
1 answer

Execution time differs for different users

I am running simple R job by root and another limited user. The execution time differs significantly. What can be the source of problem? Further information Here is how I compare the run time: # time /share/binary/R/bin/R CMD BATCH s1n\=50.R real …
lashgar
  • 681
  • 1
  • 5
  • 16
1
vote
0 answers

Apache died; Suspect is ulimit but cannot reproduce

Apache died last night. Error log shows this [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 48 Browsing around the Internet, everyone seems to say this is is an issue with ulimit in Linux. If I understand correctly,…
Safado
  • 4,786
  • 7
  • 37
  • 54
1
vote
2 answers

Ulimit settings in Oracle 11g on Linux 5

Is there an issue with "Ulimit -Hn" being set too low (at 1024) when (Oracle recommend 65536)? This is for Oracle 64-bit 11g on Linux 5. It is one of the settings that appears to be woefully short of its recommendation. But I am also aware that the…
Stuart
  • 21
  • 3
1
vote
2 answers

ulimit enforcement on AIX?

Which ulimits (stack, data, rss, nofiles, etc.) does the AIX kernel enforce? It appears that the rss (memory) ulimit is not actually enforced, for either the soft or hard value. If that is the case, what is the point of having unenforced ulimits?
An̲̳̳drew
  • 1,265
  • 2
  • 14
  • 19
1
vote
0 answers

Find counts of ulimit quotas

So, we may have some sort of zainy leak in our software. We're using Mono and spawning many processes over the course of weeks/months. Eventually, we can't spawn anymore on our clients machines. It usually take ~20 hours for things to stop. Closing…
RandomInsano
  • 451
  • 1
  • 5
  • 19