activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan_ <>
Subject Re: Slow performance of NMS api compared to Java
Date Thu, 28 Aug 2008 07:59:38 GMT

Hi Jim, 

Sorry, but I simple overlooked the license agreement. I uploaded the patch
again with the ASF license.

I think adding the option to the URI is a good thing but Open Wire already
negotiated the NoDelay option at connection start up. Unfortunately NMS
hasn't yet supported this option so both the broker and the client use the
Nagle algorithm which results in delays when sending messages.

BTW I also removed the flush method call after writing to the socket as I
recognized that this call also slows down the throughput.

I would be very happy if the patch could be integrated into the source.


semog wrote:
> Since I couldn't look at your code because of the license grant issue,
> I looked in to what you had mentioned about the NoDelay option.  I
> took a stab at adding support for turning this (and several other
> socket transport options) on and off from the connection URI.  Once
> you fix the license grant, I can look at your patch and integrate it
> in with my changes.
> The solution I am playing with would look like this:
> activemq:tcp://localhost:61616?connection.NoDelay=true
> This would turn off the Nagle algorithm on the socket connection.
> Thanks!
> -Jim

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

View raw message