Package: cups Version: 2.2.10-6+deb10u1 Severity: important Hi,
After upgrading our print server from Debian 9 to 10, we frequently get notified by our monitoring system that the server is running out of memory. It seems there's a memory leak in cupsd. The memory usage starts at about 3.8% and can grow to 98% of system memory. When I monitor the memory usage of the cupsd process with top, and then run the following command in a terminal on the print server, I can see the memory usage grow with each invocation: lpstat -W completed -u The memory usage is increased and never decreased again. The memory usage also increases with other commands (although not as much), such as 'lpstat -a'. I assume client systems trigger the same issue when they query printer status. Just last night the memory usage went from about 100MB to 3GB in 23 minutes (cups was restarted by logrotate). A similar issue is described in the comments of https://askubuntu.com/questions/1160624/cupsd-service-high-memory-usage Regards, Rik -- System Information: Debian Release: 10.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages cups depends on: ii cups-client 2.2.10-6+deb10u1 ii cups-common 2.2.10-6+deb10u1 ii cups-core-drivers 2.2.10-6+deb10u1 ii cups-daemon 2.2.10-6+deb10u1 ii cups-filters 1.21.6-5 ii cups-ppdc 2.2.10-6+deb10u1 ii cups-server-common 2.2.10-6+deb10u1 ii debconf [debconf-2.0] 1.5.71 ii ghostscript 9.27~dfsg-2+deb10u3 ii libavahi-client3 0.7-4+b1 ii libavahi-common3 0.7-4+b1 ii libc6 2.28-10 ii libcups2 2.2.10-6+deb10u1 ii libcupsimage2 2.2.10-6+deb10u1 ii libgcc1 1:8.3.0-6 ii libstdc++6 8.3.0-6 ii libusb-1.0-0 2:1.0.22-2 ii poppler-utils 0.71.0-5 ii procps 2:3.3.15-2 Versions of packages cups recommends: pn avahi-daemon <none> ii colord 1.4.3-4 ii cups-filters [ghostscript-cups] 1.21.6-5 pn printer-driver-gutenprint <none> Versions of packages cups suggests: ii cups-bsd 2.2.10-6+deb10u1 pn cups-pdf <none> pn foomatic-db-compressed-ppds | foomatic-db <none> ii hplip 3.18.12+dfsg0-2 ii printer-driver-hpcups 3.18.12+dfsg0-2 ii smbclient 2:4.9.5+dfsg-5+deb10u1 ii udev 241-7~deb10u2 -- Configuration Files: /etc/default/cups changed [not included] -- debconf information: cupsys/backend: lpd, socket, usb, snmp, dnssd cupsys/raw-print: true