Project

General

Profile

Defunct ruby processes

Added by Tasslehoff Burrfoot about 18 hours ago

Hi everyone, I got a problem with a Redmine 6.0.5 instance running on docker containers.

The images I'm using is the Bitnami one, I already asked on their support channel but it seems like the problem is not related to their image.

The problem basically is related to defunct ruby processes that are constantly spawning inside the container every 10 minutes, here's an example of a "ps -ef" output inside the container

redmine    75269       1  0 05:21 ?        00:00:00 [ruby] <defunct>
redmine    75569       1  0 05:31 ?        00:00:00 [ruby] <defunct>
redmine    75869       1  0 05:41 ?        00:00:00 [ruby] <defunct>
redmine    76173       1  0 05:51 ?        00:00:00 [ruby] <defunct>
redmine    76473       1  0 06:01 ?        00:00:00 [ruby] <defunct>
redmine    76773       1  0 06:11 ?        00:00:00 [ruby] <defunct>
redmine    77082       1  0 06:21 ?        00:00:00 [ruby] <defunct>
redmine    77384       1  0 06:31 ?        00:00:00 [ruby] <defunct>
redmine    77684       1  0 06:41 ?        00:00:00 [ruby] <defunct>
redmine    77986       1  0 06:51 ?        00:00:00 [ruby] <defunct>
redmine    78286       1  0 07:01 ?        00:00:00 [ruby] <defunct>
redmine    78586       1  0 07:11 ?        00:00:00 [ruby] <defunct>
redmine    78895       1  0 07:21 ?        00:00:01 [ruby] <defunct>
redmine    79195       1  0 07:31 ?        00:00:00 [ruby] <defunct>
redmine    79495       1  0 07:41 ?        00:00:00 [ruby] <defunct>
redmine    79802       1  0 07:51 ?        00:00:00 [ruby] <defunct>
redmine    80102       1  0 08:01 ?        00:00:00 [ruby] <defunct>

Those processes do not seem to spawn from other processes and what sounds weird to me is the timestamp of those defunct processes, just like there's some scheduled process that every 10 minutes create on of those.

Another interesting information I found was that in the /opt/bitnami/redmine/log/passenger.3000.log log there are several records for these processes saying "Checking whether to disconnect long-running connections for process <DEFUNCT PROCESS PID>, application /opt/bitnami/redmine (production)"

root@d0282d4d4347:/opt/bitnami/redmine/log# tail -n 20 /opt/bitnami/redmine/log/passenger.3000.log
[ N 2025-07-02 05:56:39.5706 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 75869, application /opt/bitnami/redmine (production)
[ N 2025-07-02 06:06:39.7007 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 76173, application /opt/bitnami/redmine (production)
[ N 2025-07-02 06:16:39.7960 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 76473, application /opt/bitnami/redmine (production)
[ N 2025-07-02 06:26:39.8911 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 76773, application /opt/bitnami/redmine (production)
[ N 2025-07-02 06:36:39.9476 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 77082, application /opt/bitnami/redmine (production)
[ N 2025-07-02 06:46:40.0539 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 77384, application /opt/bitnami/redmine (production)
[ N 2025-07-02 06:56:39.1847 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 77684, application /opt/bitnami/redmine (production)
[ N 2025-07-02 07:06:39.2949 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 77986, application /opt/bitnami/redmine (production)
[ N 2025-07-02 07:16:39.3965 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 78286, application /opt/bitnami/redmine (production)
[ N 2025-07-02 07:26:39.4925 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 78586, application /opt/bitnami/redmine (production)
[ N 2025-07-02 07:36:44.6673 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 79195, application /opt/bitnami/redmine (production)
[ N 2025-07-02 07:46:44.7591 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 79495, application /opt/bitnami/redmine (production)
[ N 2025-07-02 07:56:39.6368 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 78895, application /opt/bitnami/redmine (production)
[ N 2025-07-02 08:06:44.7683 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 80102, application /opt/bitnami/redmine (production)
[ N 2025-07-02 08:16:39.7533 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 79802, application /opt/bitnami/redmine (production)
App 80412 output: sh: 1: svn: not found
App 80412 output: sh: 1: hg: not found
App 80412 output: sh: 1: cvs: not found
App 80412 output: sh: 1: bzr: not found
[ N 2025-07-02 08:26:39.7782 173/T5 age/Cor/CoreMain.cpp:1092 ]: Checking whether to disconnect long-running connections for process 80412, application /opt/bitnami/redmine (production)
root@d0282d4d4347:/opt/bitnami/redmine/log#
root@d0282d4d4347:/opt/bitnami/redmine/log#
root@d0282d4d4347:/opt/bitnami/redmine/log# for i in 75869 76173 76473 76773 77082 77384 77684 77986 78286 78586 79195 79495 78895 80102 79802 ; \
> do ps -ef | grep $i | grep -v grep ; done
redmine    75869       1  0 05:41 ?        00:00:00 [ruby] <defunct>
redmine    76173       1  0 05:51 ?        00:00:00 [ruby] <defunct>
redmine    76473       1  0 06:01 ?        00:00:00 [ruby] <defunct>
redmine    76773       1  0 06:11 ?        00:00:00 [ruby] <defunct>
redmine    77082       1  0 06:21 ?        00:00:00 [ruby] <defunct>
redmine    77384       1  0 06:31 ?        00:00:00 [ruby] <defunct>
redmine    77684       1  0 06:41 ?        00:00:00 [ruby] <defunct>
redmine    77986       1  0 06:51 ?        00:00:00 [ruby] <defunct>
redmine    78286       1  0 07:01 ?        00:00:00 [ruby] <defunct>
redmine    78586       1  0 07:11 ?        00:00:00 [ruby] <defunct>
redmine    79195       1  0 07:31 ?        00:00:00 [ruby] <defunct>
redmine    79495       1  0 07:41 ?        00:00:00 [ruby] <defunct>
redmine    78895       1  0 07:21 ?        00:00:01 [ruby] <defunct>
redmine    80102       1  0 08:01 ?        00:00:00 [ruby] <defunct>
redmine    79802       1  0 07:51 ?        00:00:00 [ruby] <defunct>
root@d0282d4d4347:/opt/bitnami/redmine/log#

Does anyone experienced something like this?

Do you have any suggestion how to dig this out or fine the cause?

Thanks

Tas


Replies (1)

RE: Defunct ruby processes - Added by Tasslehoff Burrfoot about 18 hours ago

I forgot one important information.

No matter the defunct processes Redmine seems to work perfectly fine, those processes seems not to interfere with the application.

They are only annoying because on my monitoring infrastructure I also check the number of processes running on hosts and those defunct processes makes my monitoring crazy, and potentially hide other real problems.

Thanks again

Tas

    (1-1/1)