signal-cli-rest-api icon indicating copy to clipboard operation
signal-cli-rest-api copied to clipboard

Signal Messages Result In Zombie Processes.

Open di-org opened this issue 1 year ago • 2 comments

zombie-processes

The problem

Over time, the number of Zombie processes accumulate on the host running the signal-cli-rest-api container.

For example, since the last reboot of the host running "bbernhard/signal-cli-rest-api" (as a messenger for Uptime Kuma), this is the message I receive when logging in - and when I look at the running processes, this is a snippet of the output.

Note: Messages are being received, as expected:


=> There are 3124 zombie processes.

0 updates can be applied immediately.

Last login: Tue Jul 23 01:52:37 2024 from 100.xxx.xxx.xxx

user@host:~$ ps axuw | grep Z USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND user 3939 0.0 0.0 0 0 ? Z Jul21 0:01 [signal-cli-nati] user 5476 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati] user 6931 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati] user 7141 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati] user 7360 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati] user 7586 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati] user 7840 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati] user 8044 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati] user 8248 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati] user 8471 0.0 0.0 0 0 ? Z Jul21 0:00 [signal-cli-nati]


Not sure why, but "defunct" is not showing after [signal-cli-nati], even though when I edit the message it shows - see attached image, but the upper-case "Z" in the "STAT" column indicates that it is a Zombie process.

Also, don't be thrown off by the number of Zombie processes - that is an accurate number, based on something that happened on my end. It appears to be 1 zombie process per message. The host OS is Ubuntu 22.04.

Of course, there are thousands of lines with that "ps" command.

Any help will be appreciated. Thanks!!

di-org.

Are you using the latest released version?

  • [X] Yes

Have you read the troubleshooting page?

  • [X] Yes

What type of installation are you running?

signal-cli-rest-api Docker Container

In which mode are you using the docker container?

Normal Mode

What's the architecture of your host system?

x86-64

Additional information

No response

di-org avatar Jul 24 '24 03:07 di-org