How to check or confirm the value of maxPoolSize in the MongoClient instance

1

As the title states, I am trying to find the value of the maxPoolSize property of my MongoDB client object to confirm that the value I put in is being used… From the documentation I see that by default the maxPoolSize is 100 but I am passing my own value for maxPoolSize. Printing the client object does not show the value.

I understand that I could use lsof -i tcp:27017 to check connections but I would like to confirm with just a property value if possible

 MongoClient.connect(this.url, this.options, (err, client) => {
     console.log(client); // trying to find the value of maxPoolSize here
 })

Is there somewhere where I could check or confirm the value of maxPoolSize in my client instance?

Hi @Daniel_Chicchon and welcome in the MongoDB Community :muscle: !

Are you using the useUnifiedTopology=true?
Maybe it’s the reason why you feel it’s not being used.
I have no idea how to log this though…

Cheers,
Maxime.