'Multiple processes have the same connection

When I start passenger, multiple processes have the same connection.

bundle exec passenger-status
Requests in queue: 0
  * PID: 13830   Sessions: 0       Processed: 107     Uptime: 1h 24m 22s
    CPU: 0%      Memory  : 446M    Last used: 41s ago
  * PID: 13909   Sessions: 0       Processed: 0       Uptime: 41s
    CPU: 0%      Memory  : 22M     Last used: 41s ago

ss -antp4 | grep ':3306 '
ESTAB  0  0  XXX.XXX.XXX.XXX:55488  XXX.XXX.XXX.XXX:3306  users:(("ruby",pid=13909,fd=14),("ruby",pid=13830,fd=14),("ruby",pid=4672,fd=14)) #<= 4672 is preloader process?
ESTAB  0  0  XXX.XXX.XXX.XXX:55550  XXX.XXX.XXX.XXX:3306  users:(("ruby",pid=13830,fd=24)) 
ESTAB  0  0  XXX.XXX.XXX.XXX:55552  XXX.XXX.XXX.XXX:3306  users:(("ruby",pid=13909,fd=24))

Is the connection using port 55488 correct?

I believe that inconsistencies occur when multiple processes refer to the same connection. But I can't find the problem in my application.

I am using Rails 4.x and passenger 6.0.2



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source