diff --git a/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/transport/tcp/TcpTransportFactory.java b/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/transport/tcp/TcpTransportFactory.java
index <HASH>..<HASH> 100644
--- a/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/transport/tcp/TcpTransportFactory.java
+++ b/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/transport/tcp/TcpTransportFactory.java
@@ -270,7 +270,7 @@ public class TcpTransportFactory implements TransportFactory {
       }
       synchronized (lock) {
          if (connectionPool.getMaxActive() > 0) {
-            return connectionPool.getMaxActive() * servers.size();
+            return Math.max(connectionPool.getMaxActive() * servers.size(), connectionPool.getMaxActive()); //to avoid int overflow when maxActive is very high!
          } else {
             return 10 * servers.size();
          }
ISPN-<I> - RemoteCacheManager failure in multi-threaded environment with maxActive=Integer.MAX_VALUE