db.printSlaveReplicationInfo() command response very Slow

Hi @Vinay_Jaiswal ,

3.2.1 was released in Jan, 2016 so it is definitely time to upgrade. While you are planning your major version upgrades to a supported server release, I strongly recommend upgrading to 3.2.22 (the final 3.2 release) as it includes several years of bug fixes and stability improvements. Minor releases do not include any backward-breaking changes so will be compatible with your current driver versions.

Upgrading to 3.2.22 may not necessarily improve the performance issue you are seeing, but there are many other fixes. I also don’t think it is worth tracing into thread details in 3.2 as there will be no further changes for EOL server releases. It would make more sense to investigate this once you are on a supported release – I’d recommend MongoDB 4.2+, since 4.0 will be EOL in April.

Can you also confirm whether you are using the deprecated MMAP storage engine or WiredTiger (which became the default storage engine in 3.2)? There are significant differences in behaviour between storage engines.

Regards,
Stennie