cups icon indicating copy to clipboard operation
cups copied to clipboard

Printing from cups server takes 45 Seconds Between each job

Open strikeknight57 opened this issue 4 years ago • 8 comments

Ok, so we are trying to replace the HP 4250 Printers in our fleet with newer HP Printers (HP LJ M507). The 4250s have worked just fine for years, but are breaking down. We have attempted to replace a few of them with HP Laserjet M507 Printers, and the cups server does print to it, but upon sending a job to the printer, it takes almost a full minute before it prints the job. Normally that wouldn't be a major issue... but when you are sending 15 single page jobs to the machine every 5-10 minutes... that minute wait time between each job really starts to add up... Has anyone been able to find a work around to cut the processing time down? What do I need to do to find the source of the problem?

strikeknight57 avatar Sep 20 '21 14:09 strikeknight57

@strikeknight57 It would be useful to know what driver you're using, what version of CUPS you are using, what operating system you are using, etc.

Also, can you attach the PPD file and error_log file showing a job printing to this printer?

michaelrsweet avatar Sep 22 '21 13:09 michaelrsweet

The Server is running Ubuntu 16.04.5 running cups 2.1.3 I've tested a number of different drivers from the "generic PDF" driver to the "HP LaserJet M507, driverless, cups-filters 1.27.4 (grayscale)" driver. They all print just fine, but it takes 40 to 75 seconds for each print to actually come out... Funny enough the driver I've had the best luck with is the generic PDF driver.

Where would I find the PPD File and error log File?

strikeknight57 avatar Sep 22 '21 14:09 strikeknight57

You will find the PPD file in /etc/cups/ppd. The error_log file is in /var/log/cups.

It will be useful to have debug logging enabled - use "cupsctl --debug-logging" to enable it and then print some jobs.

michaelrsweet avatar Sep 22 '21 15:09 michaelrsweet

Ok here are those files and the error log is from after having printed a bunch of test pages. I did change the driver half way through from the driver I was on previously to the generic pdf Driver. error_log.txt ppd.txt

strikeknight57 avatar Sep 22 '21 15:09 strikeknight57

If you set up the queue connection with ipp:// can you test adding this option to it: ?waitprinter=false if you set up the connection using JetDirect port 9100 for a test, does that speed up things?

jschwender avatar Sep 23 '21 13:09 jschwender

@jschwender Tried both of those things and they both ended up taking about 56 seconds in order to print. This is all with the generic PDF driver.

strikeknight57 avatar Sep 23 '21 15:09 strikeknight57

I seem to have a similar issue: when printing to my Samsung C480W Laserprinter, the first print is fast and ok, when I try to print the next document, I receive (using LibreOffice) an error saying "Printer not available - please check printer configuration" (which I did many times without finding anything suspicious to me), but when I then try agaib to print the same document, after clicking "Print" I have to wait long time (I would estimate about a minute) until the print menu appears, where i can choose the printer, number of pages etc., and now everything works as it should. Then everything repeats again, I can only print on every second attempt, independent of the file I am using. Kubuntu 20.04, do not know how to find CUPS version, but everything is permanently updated. Thank you for any help, this is going to drive me crazy.... Joe

zwj04035 avatar Dec 20 '21 09:12 zwj04035

I had similar slow down issues that ended up being a DNS issue. Even though my printer was local CUPS kept converting the address to use DDNS. Very annoying.

rmv5004 avatar Mar 25 '24 16:03 rmv5004