Questions tagged [ulimit]

181 questions
0
votes
1 answer

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. i did the following: i edit /etc/sysctl.conf and…
ufk
  • 333
  • 3
  • 8
  • 31
0
votes
2 answers

Can't raise nginx max files opened limit

I'm running Ubuntu Server. This is what I've done: /etc/security/limits.conf: * soft nofile 10240 * hard nofile 10240 And added in /etc/pam.d/common-session: session required pam_limits.so And…
Badr Hari
  • 163
  • 2
  • 11
0
votes
1 answer

limits.conf not being read when logging in

I have 2 entries in my limits.conf, * hard nofile 10240 * soft nofile 4096 but running ulimit -Sn or ulimit -Hn only displays the default values. gabriel@server:~$ ulimit -Sn 1024 gabriel@server:~$ ulimit…
0
votes
1 answer

Removeing ulimit from boot / init

In CentOs as from version 6 there is a by default process limit 1024 for every user i.e /etc/security/limits.d/90-nproc.conf * soft nproc 1024 I have to execute a backend service/daemon "myservice", which require a bigger value in…
Nasir Iqbal
  • 109
  • 5
0
votes
2 answers

Where to find the mod_cgi.c script

Where is the mod_cgi.c script, or where are all the modules in the apache software? I have a problem with the RLimitNProc settings on my server, because this settings don't work properly. I've found in the deep of the internet that there is a bug in…
John Brunner
  • 145
  • 2
  • 7
0
votes
2 answers

Raising file limits for a service rather than a user

I have seen various posts here about raising the open file limit on Linux systems for specific users (which is performed in a variety of different ways depending on the Linux distro being talked about). I have an Ubuntu 8.04.4 LTS server running…
jwbensley
  • 4,202
  • 11
  • 58
  • 90
0
votes
1 answer

Finding the source of a ulimit setting

On my CentOS 6.2 server the value of ulimit -v (virtual memory) is 1048576. However, this is not set in /etc/security/limits.conf (which is empty) or .../limit.d/ (which contains only a max processes setting). How can I find the source of this…
Bart van Heukelom
  • 1,199
  • 6
  • 21
  • 41
0
votes
1 answer

Setting limits.conf using asterisk(*) not working

My environment is Ubuntu 10.10. I'm setting /etc/security/limits.conf as well as enabling the pam_limits.so module. * soft nofile 64000 * hard nofile 65000 This is not working: logging in as root and running ulimit -n displays 1024. I change…
Magic
  • 155
  • 1
  • 1
  • 7
0
votes
1 answer

haproxy maxconn meaning

In the haproxy config file, there is a directive called maxconn. does this directive refer to concurrent connections? Or once the connection is redirected to a server, it is closed? For example, if the maxconn is set to 4000, and in my whole website…
Enrico Tuttobene
  • 227
  • 2
  • 5
  • 11
0
votes
2 answers

Is there a way to limit RAM usage by daemon in Debian?

Is there a way to set a limit on the RAM usage (virtual and resident) that a daemon can be granted in Debian? I understand that ulimit doesn't apply here, but something the right settings in /etc/security/limits.conf may be the answer. I'm…
ezequiel-garzon
  • 577
  • 2
  • 7
  • 16
0
votes
1 answer

ulimit overrides sysctl

I set sysctl fs.file-max = 4500000. However, ulimit still shows open files (-n) 1024 I understand that both values point to the max open file descriptors. How do I make ulmit respect the sysctl value? Is there any documentation on the meanings of…
kakinada
  • 1
  • 2
0
votes
1 answer

Unable to start mysqld due to inability to allocate memory

I'm unable to start mysqld due to it being unable to allocate enough memory. I've installed the DB using the defaults: sudo mysql_install_db --user=mysql Then when I try to start mysqld, I get this: name@host:/var/lib/mysql$ sudo mysqld…
Outspaced
  • 103
  • 1
  • 4
0
votes
2 answers

The change in die ulimit on Solaris 10 Sparc Server

I do want to change ulimit -n to a higher value on an Online-Banking Server, which is very sensible. I can't afford to any kind of disruption on this server. I do want to know, can I do these changes without going to risk an interruption in the…
0
votes
1 answer

Limit a process's relative (not absolute) processor consumption in Linux

What is the standard way in Linux to enforce a system policy to limit the relative CPU use of a single process? That is, on a quad-core machine, I never want a process to use more than 2 CPUs at once, even if the process creates more threads. I do…
BobBanana
0
votes
1 answer

Removing resource limits on Solaris 10

How should one remove all potential artificial resource limitations for a process? I just saw a case where a server application consumed resources so that some limitation was hit. The other shells into the same server etc were all extremely slow…
None