Gaurav Sharma wrote > > I think you forgot to do: connection.start(); >
Hey Gaurav, thanks for the suggestion. I think the PooledConnectionFactory takes care of calling connection#start() for you. Have a look at the source to http://activemq.apache.org/maven/5.6.0/activemq-pool/apidocs/org/apache/activemq/pool/ConnectionPool.html#start() http://activemq.apache.org/maven/5.6.0/activemq-pool/apidocs/org/apache/activemq/pool/ConnectionPool.html#start() Gaurav Sharma wrote > > Also, I have the pool size configured on the pooledconnectionfactory via > setMaxConnections() and setMaximumActive() for tighter control. > I have those set as well through configuration, but removed so as to simplify. -- View this message in context: http://activemq.2283324.n4.nabble.com/Number-of-PooledConnection-and-PooledConnection-1-instances-in-heap-growing-linearly-with-produced-mp-tp4654265p4654500.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.