TIL

#To get current config set by commandLine options in mongo db

db.serverCmdLineOpts()

P.S. Connect to mongo and use admin as db to run this.