cups uses more open files and more memory with each printjob
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cupsys (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cupsys
Description: Ubuntu 10.04.1 LTS
Release: 10.04 - Server
64bit System
cups 1.4.3-1ubuntu1.3
-------
Hello,
when I print a job or just delete a job, the amount of open files used by cups increases by ~ 40 - for every job. Although the memory usage goes up. That' s reproducable. Only a restart - not reload - helps to get cups back to a normal status.
In the logfiles you only find the message "too many open files". This message occurs just when it's too late. The server doesn't accept connections any more. You cannot find any strange messages in the logs before.
Now, I think it has to do something with samba. Because the files that are opened on each job and not closed are:
> cupsd 31763 root 683u unix 0xffff88015d559b00 0t0 308738831 socket
> cupsd 31763 root 684r CHR 1,9 0t0 907 /dev/urandom
> cupsd 31763 root 685u REG 251,3 36864 106058 /var/lib/
> cupsd 31763 root 686u REG 251,3 16384 106059 /var/lib/
> cupsd 31763 root 687u REG 251,3 77824 106057 /var/lib/
> cupsd 31763 root 688u REG 251,3 40960 106043 /var/lib/
They are left on every job that is cancelled or printed - till there are too much open files.
I do not use samba to print on cups, although amba is installed and needed.
Because I need to install a print server for thousands of Pages every day, I need to find a solution for this problem.
Thanks for any help!!
Ronny
Hello,
today I have solved the problem - for me.
I have Samba and Winbind running on this system. Because cups uses PAM, it uses winbind to authenticate. Now, I changed the cups winbind configuration this way, that cups does not use winbind modules and it works.
So there is something wrong with cups and the winbind / pam module.
Thanks
Ronny