7

I am running a single MongoDB database. No sharding. When I run htop, I see a lot of instances of mongod. Is that normal? Does every connection create a separate mongod process? Should I be concerned?

For some reason when I use top, only one of them is shown. That part is confusing also.

As asked in the comments, output of "ps axjf | grep mongod":

12858 12878 12877 12858 pts/0    12877 S+     500   0:00              \_ grep mongod
1  2691  2690  2690 ?           -1 Sl     497  70:54 /usr/bin/mongod -f /etc/mongod.conf
1
  • Please append the output of ps axjf | grep mongod to your question?
    – quanta
    Dec 2, 2011 at 5:17

1 Answer 1

15

Duplicate .. htop is showing different threads as well. not just processes. top and ps show only processes.

2
  • Thanks! Sorry I don't have enough reputation to upvote your answer.
    – burger
    Dec 25, 2011 at 23:27
  • 2
    You can hide threads in htop. Press F2 to go the settings, go to Display Options, and select "Hide kernel threads" and "Hide userland process threads". To still show the threads, but in a different color, select "Display threads in a different color".
    – JW.
    May 9, 2017 at 11:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .