RabbitMQ Issue on Load Testing

159 views
Skip to first unread message

David Castro

unread,
Mar 26, 2020, 2:27:42 PM3/26/20
to rabbitmq-users

Hello Team, can anyone help me to figure out this?


I'm working on a high availability project and I have implemented RabbitMQ using .NET Core and C# to improve performance and process data in background, but I'm getting some errors when I run stress tests with JMeter tool, the log says:


"RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> System.AggregateException: One or more errors occurred. (Connection failed) ---> RabbitMQ.Client.Exceptions.ConnectFailureException: Connection failed ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Connection reset by peer :5672"


About the backend servers, I have a WebApi in a Linux server and RabbitMQ with the consumer in another server, both are centos 7.


Thank you in advance!

Wesley Peng

unread,
Mar 26, 2020, 2:35:22 PM3/26/20
to rabbitm...@googlegroups.com
To validate what’s the issue you need to tell us more details such as the architect, software versions etc.

Your log looks there were too many connections to RMQ server, the new connection got refused.

You should be able use the more professional tool against RMQ such as rabbitmq perf for performance test. 

Regards 
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

Message has been deleted

David Castro

unread,
Mar 27, 2020, 12:43:00 PM3/27/20
to rabbitmq-users
(2nd post)

We are using RabbitMQ 3.6.1, .NET Core 2.2 for WebApi project, the endpoint is very simple and it is only publishing to RabbitMQ.
 
WebAPI is the publisher, I have created another .NET Core 3.0 Service Worker project as Consumer.
 
RabbitMQ Exchange and the consumer is running on the same server with CentOS 7, and the WebAPI is running on another server with CentOS 7 too.
 
The process is running correctly for a happy path with normal requests, but with JMeter tool, I'm getting those errors. Not sure what things do I have to configure to get this done

Thank you in advance!!!


El jueves, 26 de marzo de 2020, 12:35:22 (UTC-6), Wesley Peng escribió:
To validate what’s the issue you need to tell us more details such as the architect, software versions etc.

Your log looks there were too many connections to RMQ server, the new connection got refused.

You should be able use the more professional tool against RMQ such as rabbitmq perf for performance test. 

Regards 

On Fri, Mar 27, 2020, at 2:27 AM, David Castro wrote:

Hello Team, can anyone help me to figure out this?


I'm working on a high availability project and I have implemented RabbitMQ using .NET Core and C# to improve performance and process data in background, but I'm getting some errors when I run stress tests with JMeter tool, the log says:


"RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> System.AggregateException: One or more errors occurred. (Connection failed) ---> RabbitMQ.Client.Exceptions.ConnectFailureException: Connection failed ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Connection reset by peer :5672"


About the backend servers, I have a WebApi in a Linux server and RabbitMQ with the consumer in another server, both are centos 7.


Thank you in advance!


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.

Wesley Peng

unread,
Mar 27, 2020, 12:49:42 PM3/27/20
to rabbitm...@googlegroups.com
Hello

The first, please upgrade your software versions to the latest ones.

The second, please check the tuning guide below,

Thanks 
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

David Castro

unread,
Mar 27, 2020, 8:34:05 PM3/27/20
to rabbitmq-users
Upgrade done.

Rabbit up to version 3.8,

When I create rabbitmq.conf and restart the service within my Linux server, it throws the following error:

"Failed to start LSB: RabbitMQ is a multi-protocol messaging broker."

Thank you in advance!

rabbit.png

Wesley Peng

unread,
Mar 27, 2020, 8:39:19 PM3/27/20
to RMQ Group rabbitmq-users
IIRC this is a network error rather than application server's problem.
Can you check what brings the error of "failed to start LSB" in operation system log?

regards.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.


Attachments:
  • rabbit.png

Reply all
Reply to author
Forward
0 new messages