Mongo database error in resource allocation
Mostly because of memory utilization. Observed mongodb log and found that the same time at which pthread_create failed, other processes were consuming memory so no room for mongodb.