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 | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    CentOS and mongodb 3.2 configurations issues after installing apache

    Stack Overflow | 8 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