com.mongodb.MongoWaitQueueFullException: Too many threads are already waiting for a connection. Max number of threads (maxWaitQueueSize) of 500 has been exceeded.

Stack Overflow | Salman Bukhari | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    CentOS and mongodb 3.2 configurations issues after installing apache

    Stack Overflow | 7 months ago | Salman Bukhari
    com.mongodb.MongoWaitQueueFullException: Too many threads are already waiting for a connection. Max number of threads (maxWaitQueueSize) of 500 has been exceeded.

    Root Cause Analysis

    1. com.mongodb.MongoWaitQueueFullException

      Too many threads are already waiting for a connection. Max number of threads (maxWaitQueueSize) of 500 has been exceeded.

      at com.mongodb.connection.DefaultConnectionPool.createWaitQueueFullException()
    2. MongoDB Java Driver
      AsyncClusterBinding$AsyncClusterBindingConnectionSource.getConnection
      1. com.mongodb.connection.DefaultConnectionPool.createWaitQueueFullException(DefaultConnectionPool.java:270)
      2. com.mongodb.connection.DefaultConnectionPool.getAsync(DefaultConnectionPool.java:146)
      3. com.mongodb.connection.DefaultServer.getConnectionAsync(DefaultServer.java:82)
      4. com.mongodb.binding.AsyncClusterBinding$AsyncClusterBindingConnectionSource.getConnection(AsyncClusterBinding.java:102)
      4 frames