activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Leyba" <>
Subject jdbc persistence limit ?
Date Wed, 10 Jan 2007 12:04:13 GMT

My application defines a broker with a MySQL jdbcPersistenceAdapter
and use durable topics.

I'm trying to make load test so I did a client that simulates 100
clients subscribed to a topic and received the following error:

Data source rejected establishment of connection,  message from
server: "Too many connections"
	at org.apache.activemq.util.JMSExceptionSupport.create(
	at org.apache.activemq.ActiveMQConnection.syncSendPacket(
	at org.apache.activemq.ActiveMQSession.syncSendPacket(
	at org.apache.activemq.ActiveMQMessageConsumer.<init>(
	at org.apache.activemq.ActiveMQTopicSubscriber.<init>(
	at org.apache.activemq.ActiveMQSession.createDurableSubscriber(
	at org.apache.activemq.ActiveMQSession.createDurableSubscriber(

After a little investigation I discovered my datasource refer to JBoss
pool with 20 max connections and my client connected 20 first
subscribers but rejected with the above error next 80.

Now I wonder to know if it is what I think it is: activemq broker open
a DB connection for each subscriber ?

Thanks in advance

Javier Leyba
Barcelona - Spain

View raw message