upstart jobs do not respect /etc/security/limits.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CUPS |
New
|
Undecided
|
Unassigned | ||
MySQL Server |
New
|
Undecided
|
Unassigned | ||
upstart |
Invalid
|
Undecided
|
Unassigned | ||
upstart (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I run a terminalserver under Ubuntu 11.10 (oneiric) and CUPS 1.5.0-8ubuntu6. Unfortunately i get "Max clients reached, holding new connections..." error.
I try to increase the MaxClients value to 8192 in /etc/cups/
/var/log/
I [22/Feb/
I [22/Feb/
I [22/Feb/
Also i try to set higher file descriptor limit in /etc/security/
root hard nofile 64000
root soft nofile 64000
and also add "session required pam_limits.so" to /etc/pam.
Ulimit seams to works fine:
root@ts:~# ulimit -n
64000
Before i upgrade to Oneiric i have same configuration on Ubuntu 10.04 Lucid and CUPS 1.4.3-1ubuntu1 with works fine.
This seams to by a similar bug to:
https:/
Lets me know if you need some more information.
BR Pawel
affects: | cups (Ubuntu) → upstart (Ubuntu) |
Changed in upstart (Ubuntu): | |
status: | New → Triaged |
summary: |
- Can not increase MaxClients in cups (Max clients reached, holding new - connections...) + upstart jobs do not inherit /etc/security/limits.conf |
summary: |
- upstart jobs do not inherit /etc/security/limits.conf + upstart jobs do not respect /etc/security/limits.conf |
Here, an additional test Test. A new / clean Ubuntu Lucid installation:
root@ts3:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
I set this limits in /etc/security/ limits. conf
root hard nofile 65536
root soft nofile 65536
root@ts3:~# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 20
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
root@ts3:~# dpkg -l "cups*" Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Cfg-files/ Unpacked/ Failed- cfg/Half- inst/trig- aWait/Trig- pend /Reinst- required (Status,Err: uppercase=bad) ======= ====-== ======= =====-= ======= ======= ======= ======= ======= ======= =
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii cups 1.4.3-1ubuntu1 Common UNIX Printing System(tm) - server
un cups-bsd <none> (no description available)
ii cups-client 1.4.3-1ubuntu1 Common UNIX Printing System(tm) - client pro
ii cups-common 1.4.3-1ubuntu1 Common UNIX Printing System(tm) - common fil
ii cups-driver-gu 5.2.5-0ubuntu1 printer drivers for CUPS
un cups-pdf <none> (no description available)
un cups-ppdc <none> (no description available)
un cups-pt <none> (no description available)
un cupsddk <none> (no description available)
un cupsddk-driver <none> (no description available)
un cupsomatic-ppd <none> (no description available)
un cupsys <none> (no description available)
un cupsys-bsd <none> (no description available)
un cupsys-client <none> (no description available)
un cupsys-common <none> (no description available)
un cupsys-driver- <none> (no description available)
CPUS changes in /etc/cups/ cupsd.conf:
LogLevel debug
MaxClients 32768
CUPS 1.4.3-1ubuntu1 works fine, like expected:
root@ts3:~# grep Max /var/log/ cups/error_ log 2012:18: 17:23 +0100] MaxClients limited to 1/3 (21845) of the file descriptor limit (65536)...
I [22/Feb/
then i change the /etc/apt/ sources. list from lucid to maverick and reinstall CUPS
apt-get install cups
...
The following packages will be upgraded:
cups cups-client cups-common libcups2
root@ts3:~# dpkg -l "cups*" Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Cfg-files/ Unpacked/ Failed- cfg/Half- inst/trig- aWait/Trig- pend /Reinst- required (Status,Err: uppercase=bad) ======= ====-== ======= =====-= ======= ======= ======= ======= ======= ======= =
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii cups ...