[cups.general] Doubt about cups MaxJobs

Michael Sweet msweet at apple.com
Wed Mar 3 21:56:01 PST 2010


On Mar 3, 2010, at 2:45 PM, Salatiel Filho wrote:
> Hi, reading the article "Why Is CUPS Taking Up A Lot Of CPU Memory And
> How Can I Fix It?" from http://www.cups.org/articles.php?L247+T+Q i
> understood that if you keep MaxJobs = 0 , cups will eat lots of memory
> because it will keep those jobs in memory.
> Well , in my environment i use MaxJobs = 0 , because there are a few
> jobs that  can not it be "rotated/deleted" for a few days, so i have a
> script that purges, daily, all completed jobs from the other queues [
> /var/spool/c* and /var/spool/d* ] and sends a HUP signal for cups. It
> works fine, only the jobs that cannot be deleted will be left in cups,
> but i have this doubt:
> Will cups release the used memory after a HUP signal ?  Is there
> another approach to avoid jobs from an specif queue be kept and not
> deleted if i use max jobs > 0  and this limit is achieved ?


That article hasn't been updated since CUPS 1.4 was released; now we only keep active and recently accessed completed jobs in memory. Sending SIGHUP will unload the completed jobs.

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair








More information about the cups mailing list