activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From venkatesh <>
Subject Re: what is the root cause and how to resolve the error i.e javax.jms.JMSException: No buffer space available (maximum connections reached?
Date Tue, 23 Sep 2014 06:06:29 GMT
Hi Tim,

Please find more details related to this issue and also answers for your
below questions

Your Question: Was there anything unusual in the logs around the time the
errors were seen?  
Answer: Actually No, But there is one scenario during our performance test
where this issue occurs but it's not a valid scenario  

Your Question: Finally, your stack trace from several days ago shows that 
com.spacetimeinsight.alerts.util.MessagingUtils.sendMessage() calls 

Answer: Please find below code snippet once.
try {
			ConnectionFactory connectionFactory = (ConnectionFactory)
			connection = connectionFactory.createConnection();
			Session session = connection.createSession(false,
			MessageProducer producer = session.createProducer((Destination)
			producer.send(buildMessage(msg, msgType, session,props));
		} catch (Exception e) {
			//some code here
		} finally {
			if (connection != null) {
				try {
				} catch (JMSException e) {
					// TODO Auto-generated catch block
					Logger.error("Exception is sendMessage  while close connection ",
MessagingUtils.class, e);

Question: Do you create a new AMQ session for every message you send?  
Answer: Yes

Question: Is there any caching/pooling being done?
Answer: No


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message