I have following mongo process tree in LINUX server.


I want to kill 1925 process, not parent (1168). Is there any possible ways to kill child processes only & free up the consume memory be zombie/dead processes of mongo.

This mongo processes keeps on increasing & consume CPU 100%.

  • 1
    I think you should try to identify why that child process is consuming CPU. Is there a bad query somewhere? – Anders Bornholm May 2 '18 at 8:29
  • As per the earlier comment, it would be much better to identify what the issue is. If you have a recurring problem, killing or restarting processes is a disruptive (and temporary fix). You can use db.currentOp() to display running processes in the mongo shell and db.killOp() to request the operation terminate. You'd want to use this approach with caution and avoid killing any system threads. Alternatively, you could just restart your mongod service. What are your specific versions of MongoDB and O/S? Also, what sort of deployment do you have (standalone, replica set, sharded cluster)? – Stennie May 4 '18 at 0:33

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.