activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbalustar <sbalus...@gmail.com>
Subject Active MQ Stomp Performance
Date Tue, 22 Mar 2016 00:21:28 GMT
Hi,

  I am doing some performance analysis on Ative MQ Stomp Client with SSL and
Non SSL connections. I have published one lakh  messages of lenghth 1 Kb
each to the broker using Jmeter. 

 Later on started the execution of my stomp client and below are my analysis
results.

  1) Non SSL Connection took 100 secs to consume one Lakh messages. (1000
per sec)
  2) SSL Connection took 16 secs to  consume one Lakh messages. (6250 per
sec )

Generally ,  Non SSL would be faster than SSL , but in my case  my Stomp
Java Client Consumes more messages in SSL.

Please let me know what could be  the reason for this.

My Sample Client Code looks like this


*connection.subscribe(NotificationConstants.TOPIC_NAME_3kb,
Subscribe.AckModeValues.CLIENT);
			startTime=Calendar.getInstance().getTimeInMillis();
			while(isAvailable){

				try{
					StompFrame message= connection.receive(1000);
					connection.ack(message.getHeaders().get("message-id"));
				} catch (SocketTimeoutException e) {
					endTime=Calendar.getInstance().getTimeInMillis();
					isAvailable=false;

				}
			} 
		}catch (Exception e1) {

			e1.printStackTrace();
			System.out.println("Problem Occured while Consuming the
notifications....");
		}*



--
View this message in context: http://activemq.2283324.n4.nabble.com/Active-MQ-Stomp-Performance-tp4709861.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message