Why is it that mongodb restarts are slow or even impossible to start when the number of collections is large

This looks like the database was recovering from an unsafe shutdown and was not started with the appropriate replSet parameter. If this is part of a replica set then please make sure that you are using the correct startup parameters.