treasure-data / serverengine

A framework to implement robust multiprocess servers like Unicorn
Apache License 2.0
759 stars 86 forks source link

ServerEngine creates zombie process #73

Closed syarynovskyi closed 8 years ago

syarynovskyi commented 8 years ago

Hi there.

I am not sure where problem is. But I have simple module with run method. ServerEngine runs master process, supervisor and 1 worker. And it works fine, but I am not comfortable with that zombie process:

569327353 48126 48111   0  6:27PM ?? 0:00.00 (ruby)    syarin          48126 <---zombie
569327353 48127     1   0  6:27PM ?? 0:00.02 bin/start    syarin          48126 
569327353 48128 48127   0  6:27PM ?? 0:00.01 bin/start    syarin          48126
569327353 48129 48128   0  6:27PM ?? 0:00.02 bin/start    syarin          48126

options:

        {
          log: <log_file>,
          pid_path: <pid_file>,
          worker_type: "process",
          supervisor: true,
          daemonize: true,
          log_rotate_age: 0, # disable log rotation
          workers: 1,
          restart_server_process: true
        }

Could you suggest where to dig? I can provide any extra info if needed.

Thanks.