MongoDB troubleshooting
If your MongoDB Reader app hangs on startup or experiences connection issues, try adding a socket timeout to the connection URL, for example, mongodb+srv://abcdev3.gcp.mongodb.net/mydb;socketTimeoutMS=60000. This will increase the socket timeout to one minute (60,000 microseconds). See Docs Home / Client Libraries / Java / Java Sync Driver / Socket Settings for more information.