Comment 2 for bug 938669

Revision history for this message
panticz.de (panticz.de) wrote : Re: Can not increase MaxClients in cups (Max clients reached, holding new connections...)

Finaly, i found the solution for this problem.

Since Ubuntu Maverick CUPS will by startet by Upstart instead of init.d script. Unfortunately Upstart ignores the limits set in /etc/security/limits.conf. The solution for this problem is to set the limits in Upstart CUPS config file /etc/init/cups.conf e.g.:

limit nofile 4096 4096

After CUPS restart "/etc/init.d/cups restart" limits settings are back correctly:

grep Max /var/log/cups/error_log
I [23/Feb/2012:12:41:56 +0100] MaxClients limited to 1/3 (1365) of the file descriptor limit (4096)...

BR Pawel