Red Hat Bugzilla – Bug 205619
cupsd and eggcups take up near 100% cpu usage and must be killed before this is fixed
Last modified: 2007-11-30 17:11:42 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:220.127.116.11) Gecko/20060808 Fedora/18.104.22.168-2.fc5 Firefox/22.214.171.124 pango-text
Description of problem:
cups will use 100% cpu usage until it is killed. Restarting the system does not work. May also be related to OpenOffice as cupsd and eggcups will use high cpu when an openoffice program is open and after it has closed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start system
2. If not at 100% cpu open OpenOffice
CPU spikes to 100%, determined processes with command 'ps -aux'
Created attachment 135819 [details]
output of ps -aux command
Look at the CPU % for cupsd and eggcups
Please attach your /var/log/cups/error_log file. Thanks.
Created attachment 135842 [details]
CUPS error log file
Okay, I don't see anything in there that gives us any clue about what's going
on, so I'll need to enable more debugging output.
Please stop CUPS, as root:
/sbin/service cups stop
Then clear out the error_log file:
Edit the /etc/cups/cupsd.conf file so that the LogLevel line reads:
Then start CUPS again:
/sbin/service cups start
Now, when you see the CPU usage at 100% again, please attach the
/var/log/cups/error_log file and hopefully it will shed some light on it. Thanks.
I did what you said to do and the first log file I got was over 1.4gb and the
one I have right now is over 220mb. Do you want me to upload the whole thing?
You could bzip2 it first, to save bandwidth:
bzip2 -c /var/log/cups/error_log > error_log.bz2
Or, just take the first 10000 lines or so:
head -n 10000 /var/log/cups/error_log > error_log.head
I'm sure that will be enough to diagnose the problem. Thanks!
Created attachment 135879 [details]
CUPS error log file with debug2 info level
*** Bug 205705 has been marked as a duplicate of this bug. ***
Next thing I need is the strace.output file from running this command:
strace -s2048 lpstat -s 2>strace.output
Leave it for a minute or so and then attach the file here. Thanks.
Created attachment 135982 [details]
strace.output file that was requested
This was used when the CUPS log level was reset to info(I reset it because the
files were huge, but let me know if you want this on debug2)
Created attachment 135986 [details]
Please try these test packages (1.2.3-1.3):
Does 1.2.3-1.3 fix the problem?
No. No difference.
Same here still have to kill cupsd and eggcups to get cpu usage down.
Thanks for testing.
Here is the upstream bug report:
1.2.3-1.3 contains the 'str1968.patch' patch.
This might be related to the configuration you have. If you don't have any
passwords set for remote printers or anything, please do this (as root):
tar jcf cups-config.tar.bz2 /etc/cups
and attach the cups-config.tar.bz2 file here. Thanks.
In addition to attaching the configuration here, please try these experimental
CUPS packages (1.2.3-1.4). They have extra debugging turned on in two modules
and I think it might be useful to see the debugging from 'lpstat -s'.
Created attachment 136146 [details]
Created attachment 136147 [details]
lpstat-s.output.head after cups-1.2.3-1.4 packages
still no glory
I am seeing the same problem: cups + eggcups eat 100% of processor and fill the
log files with an incredible rate. However, my /var/log/cups/error_log file is
full of lines like
E [13/Sep/2006:15:33:20 +0200] cupsdAcceptClient: skipping getpeercon()
which I did not find in error_logs attached above. The access_log contains many
of lines like
localhost - root [12/Sep/2006:14:34:57 +0200] "POST / HTTP/1.1" 200 124
Maybe it can help. I have cups-1.2.3-3
ron: that's great, I think we're narrowing down on the problem now. Could you
now please try 'lpstat -s' again, but this time capture the CUPS debugging
output? Here's how (all as root):
/sbin/service cups stop
Start CUPS in the foreground:
/usr/sbin/cupsd -f &>cupsd.output
Then run 'lpstat -s' in another terminal, wait a couple of seconds, and then
control-C both lpstat and cupsd. I'd really like to see the cupsd.output! Thanks.
Created attachment 136162 [details]
here ya go again!
Please try these test packages (1.2.3-1.5):
Does 1.2.3-1.5 fix the problem?
Created attachment 136180 [details]
some success? run away loop gone. can print now. here is output of 'lpstat-t'
Great! I'll get a non-debug build ready.
Created attachment 136181 [details]
Please try these test packages (1.2.3-1.6):
The extra debugging information is removed, but they have my wbuffer fix. These
should work normally.
ron, Jiri: let me know how they work for you. Thanks!
Of course, you can now change your /etc/cups/cupsd.conf 'LogLevel' line back to:
As far as I'm concerned this bug is squashed. Thanks Tim.!
I've been tracking this bug from 205705, and this fix works for me, too.
Also works for me. Thanks!
Here it works too. Thanks. Jiri.
*** Bug 206075 has been marked as a duplicate of this bug. ***