joehillen/packagebeat

packagebeat leaves defunct dpkg-query processes

Closed this issue · 1 comments

gujo commented

It seems like forked processes are not closed are not closed correctly.

ps aux| grep dpkg-query

root 9433 0.0 0.0 0 0 ? Z 05:29 0:00 [dpkg-query]
root 11213 0.0 0.0 0 0 ? Z 04:29 0:00 [dpkg-query]
root 16936 0.0 0.0 0 0 ? Z 06:29 0:00 [dpkg-query]
root 24319 0.0 0.0 0 0 ? Z 07:29 0:00 [dpkg-query]
root 31729 0.0 0.0 0 0 ? Z 08:29 0:00 [dpkg-query]

Got the same thing:

ubuntu@ip-10-22-2-157:~$ ps auxwwf
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
<snip>
package+ 23212  0.0  0.2 147148 10608 ?        Ssl  May04   1:00 /usr/bin/packagebeat -c /etc/packagebeat/packagebeat.yml
package+ 23222  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+ 25057  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+ 26896  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+ 28729  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+ 30556  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+ 32390  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+  1937  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+  3846  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+  5650  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+  7454  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+  9258  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+ 11069  0.0  0.0      0     0 ?        Z    May04   0:00  \_ [dpkg-query] <defunct>
package+ 12894  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 14711  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 16531  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 18362  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 20184  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 22013  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 23887  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 25878  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 27707  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 29535  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 31371  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+   746  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+  2820  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+  4724  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+  6598  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+  8452  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 10320  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 12338  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 14147  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 15952  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 17781  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 19588  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 21395  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 23280  0.0  0.0      0     0 ?        Z    May05   0:00  \_ [dpkg-query] <defunct>
package+ 25098  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 26917  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 28735  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 30569  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 32388  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+  1912  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+  3893  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+  5970  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+  8003  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 10027  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 12080  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 14130  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 16135  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 18154  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 20208  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 22264  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 24434  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 26325  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 28133  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 29941  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+ 31761  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+  1126  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+  3148  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+  5001  0.0  0.0      0     0 ?        Z    May06   0:00  \_ [dpkg-query] <defunct>
package+  6819  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+  8650  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 10474  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 12293  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 14114  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 15944  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 17822  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 19810  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 21633  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 23496  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 25322  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 27151  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 28969  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 30790  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 32624  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+  2160  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+  4065  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+  5884  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+  7712  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+  9534  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 11356  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 13186  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 15006  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 16829  0.0  0.0      0     0 ?        Z    May07   0:00  \_ [dpkg-query] <defunct>
package+ 18675  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 20498  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 22353  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 24193  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 26015  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 27836  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 29698  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 31719  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+  1095  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+  3132  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+  4983  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+  6802  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+  8633  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 10456  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 12275  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 14095  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 15916  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 17768  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 19586  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 21413  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 23276  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 25105  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 26916  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 28744  0.0  0.0      0     0 ?        Z    May08   0:00  \_ [dpkg-query] <defunct>
package+ 30560  0.0  0.0      0     0 ?        Z    00:34   0:00  \_ [dpkg-query] <defunct>
package+ 32405  0.0  0.0      0     0 ?        Z    01:34   0:00  \_ [dpkg-query] <defunct>
package+  1926  0.0  0.0      0     0 ?        Z    02:34   0:00  \_ [dpkg-query] <defunct>
package+  3865  0.0  0.0      0     0 ?        Z    03:34   0:00  \_ [dpkg-query] <defunct>
package+  5681  0.0  0.0      0     0 ?        Z    04:34   0:00  \_ [dpkg-query] <defunct>
package+  7509  0.0  0.0      0     0 ?        Z    05:34   0:00  \_ [dpkg-query] <defunct>
package+  9445  0.0  0.0      0     0 ?        Z    06:34   0:00  \_ [dpkg-query] <defunct>
package+ 11538  0.0  0.0      0     0 ?        Z    07:34   0:00  \_ [dpkg-query] <defunct>
package+ 13574  0.0  0.0      0     0 ?        Z    08:34   0:00  \_ [dpkg-query] <defunct>
package+ 15627  0.0  0.0      0     0 ?        Z    09:34   0:00  \_ [dpkg-query] <defunct>
package+ 17707  0.0  0.0      0     0 ?        Z    10:34   0:00  \_ [dpkg-query] <defunct>
package+ 19792  0.0  0.0      0     0 ?        Z    11:34   0:00  \_ [dpkg-query] <defunct>
<snip>

Is this going to cause a problem if the defunct processes keep building up?