Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signal Messages Result In Zombie Processes. #568

Open
2 tasks done
di-org opened this issue Jul 24, 2024 · 2 comments
Open
2 tasks done

Signal Messages Result In Zombie Processes. #568

di-org opened this issue Jul 24, 2024 · 2 comments

Comments

@di-org
Copy link

di-org commented Jul 24, 2024

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?

  • Yes

Have you read the troubleshooting page?

  • 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 di-org changed the title Signal Messages Lead To Zombie Processes. Signal Messages Result In Zombie Processes. Jul 24, 2024
@bbernhard
Copy link
Owner

Hmm, what's also strange is, that ps shows thar the process name is signal-cli-nati (indicating thar you are running in native mode), but you mentioned that you are actually running the docker container in normal mode. 🤔

@di-org
Copy link
Author

di-org commented Jul 24, 2024

Maybe I made a mistake. That was the default when I submitted the issue, but this is the config of the container:

image

Am I running in a non-preferred configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants