You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by SledgeHammer <gr...@firstam.com> on 2013/04/19 20:45:32 UTC
Producer is blocking...
Using ActiveMQ 5.8 on a Windows 7 PC 8GB of RAM through the C# NMS wrappers.
I have a single queue, configuration is pretty much stock out of the box
except for changing the port to get through the firewall.
I'm submitting messages correctly, but for some reason, after a while (~150
messages), SendMessage hangs. Each message is approximately 1MB and takes
about 8 seconds for a client to process. Per the optimization guide, my
connection URI has:
?wireFormat.tightEncodingEnabled=true&jms.useAsyncSend=true&jms.useCompression=true
appended. Also, I'm serializing the data to a byte array and using
IBytesMessage.
Am I missing something? When its a smaller message (60k to 120k), I can pump
through 10,000 messages with no problems.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Producer-is-blocking-tp4666069.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Producer is blocking...
Posted by Timothy Bish <ta...@gmail.com>.
On 04/19/2013 03:47 PM, SledgeHammer wrote:
> Good call (sort of) :). Turned off producer flow control and it seems like
> its not getting stuck anymore. However, now its throwing a few exceptions
> when I get to around ~500 messages:
>
> A first chance exception of type 'System.IO.EndOfStreamException' occurred
> in mscorlib.dll
> Additional information: Unable to read beyond the end of the stream.
> A first chance exception of type 'System.Net.Sockets.SocketException'
> occurred in System.dll
> Additional information: An existing connection was forcibly closed by the
> remote host
> A first chance exception of type 'System.IO.IOException' occurred in
> System.dll
> Additional information: Unable to write data to the transport connection: An
> existing connection was forcibly closed by the remote host.
>
> A send is taking approximately 15ms now.
>
> Also, when I switched to nms instead of jms, I got an exception on useAsync
> not being a valid flag. The crash is probably more important to me though
> :(.
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Producer-is-blocking-tp4666069p4666072.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
You need to configure sensible memory limits for your Broker to match
your use case.
You need to read the NMS Documentation for the correct configuration
options.
--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/
Re: Producer is blocking...
Posted by SledgeHammer <gr...@firstam.com>.
Good call (sort of) :). Turned off producer flow control and it seems like
its not getting stuck anymore. However, now its throwing a few exceptions
when I get to around ~500 messages:
A first chance exception of type 'System.IO.EndOfStreamException' occurred
in mscorlib.dll
Additional information: Unable to read beyond the end of the stream.
A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll
Additional information: An existing connection was forcibly closed by the
remote host
A first chance exception of type 'System.IO.IOException' occurred in
System.dll
Additional information: Unable to write data to the transport connection: An
existing connection was forcibly closed by the remote host.
A send is taking approximately 15ms now.
Also, when I switched to nms instead of jms, I got an exception on useAsync
not being a valid flag. The crash is probably more important to me though
:(.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Producer-is-blocking-tp4666069p4666072.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Producer is blocking...
Posted by Timothy Bish <ta...@gmail.com>.
On 04/19/2013 02:45 PM, SledgeHammer wrote:
> Using ActiveMQ 5.8 on a Windows 7 PC 8GB of RAM through the C# NMS wrappers.
> I have a single queue, configuration is pretty much stock out of the box
> except for changing the port to get through the firewall.
>
> I'm submitting messages correctly, but for some reason, after a while (~150
> messages), SendMessage hangs. Each message is approximately 1MB and takes
> about 8 seconds for a client to process. Per the optimization guide, my
> connection URI has:
>
> ?wireFormat.tightEncodingEnabled=true&jms.useAsyncSend=true&jms.useCompression=true
>
> appended. Also, I'm serializing the data to a byte array and using
> IBytesMessage.
>
> Am I missing something? When its a smaller message (60k to 120k), I can pump
> through 10,000 messages with no problems.
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Producer-is-blocking-tp4666069.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Sounds like producer flow control
http://activemq.apache.org/producer-flow-control.html
Also the jms.* options should be nms.* for the NMS client libraries.
--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/