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
burger
  • 233
  • 3
  • 6

1 Answers1

15

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

sajal
  • 582
  • 6
  • 12
  • Thanks! Sorry I don't have enough reputation to upvote your answer. – burger Dec 25 '11 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 09 '17 at 11:51