Git Product home page Git Product logo

Comments (3)

wellington1993 avatar wellington1993 commented on August 12, 2024

I have 214 defunct processes now.
Isn't a big problem because the '/proc/sys/kernel/pid_max' value is 32768.

But if the processes still defuncting maybe will be a problem in the future.

I'm search and apparently the best way to free the defunct process is killing the parent process.
But I don't know a secure way to do this in production environment.

Thanks!

from puma_worker_killer.

schneems avatar schneems commented on August 12, 2024

Can you manually send a SIGTERM to those processes and have them shut down?

It seems like the issue is there is something preventing the process from shutting down which would likely be a problem in your app code instead of with puma or puma worker killer.

Try running a plain puma process with a “hello world” rack app and see if it still happens. Also make sure puma and PWK are upgraded to the latest.

For the processes that are still alive there might be ways to get them to output where they are stuck. Maybe a tool like rbtrace.

from puma_worker_killer.

wellington1993 avatar wellington1993 commented on August 12, 2024

Thanks @schneems

I will try rbtrace.
Probably my app code and maybe related with threads use.

Closing this issue for now.

from puma_worker_killer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.