perfTest tool: getting c.r.c.impl.ForgivingExceptionHandler error

633 views
Skip to first unread message

Rod

unread,
Jul 11, 2019, 4:52:12 PM7/11/19
to rabbitmq-users
Hi, I'm facing the following issue when using perfTest tool:


#20:38:32.753 [AMQP Connection some_ip:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)

20:40:41.648 [AMQP Connection some_ip:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)

#20:40:45.082 [AMQP Connection 0:0:0:0:0:0:0:1:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)

20:43:23.786 [AMQP Connection some_ip:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)

#20:43:26.797 [AMQP Connection some_ip:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)



In my publish-consume-spec.js I have this content:

[
 
 {'name':      'message-sizes-and-producers',
  'type':      'varying',
  'params':    [{'time-limit':     30,
                 'consumer-count': 90}],
  'variables': [{'name':   'min-msg-size',
                 'values': [0, 1000, 10000, 100000]},
                {'name':   'producer-count',
                 'values': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}]}
]




I'm not sure why it is failing. For example for another scenario, it sometimes is passing and sometimes not (with the same error). This is the scenario:

 {'name':      'no-ack',
  'type':      'simple',
  'params':    [{'time-limit':     30}]
 }



Also, If I run perfTest command just plain (bin/runjava com.rabbitmq.perf.PerfTest) I don't see any error.

Arnaud Cogoluègnes

unread,
Jul 12, 2019, 3:44:30 AM7/12/19
to rabbitm...@googlegroups.com
Does the run crash completely (no results)? There can be some spurious
warnings when a run stops and PerfTestMulti moves on to the next one.
> --
> 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.
> To post to this group, send email to rabbitm...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/3bb2a300-62cd-4819-9f80-8e79c8d5d550%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Rod

unread,
Jul 12, 2019, 4:00:12 PM7/12/19
to rabbitmq-users
No Results at all. Now Randomly I'm getting success but eventually, if I change some variables (more publishers, more consumers, etc) I'm going to start getting the error again. Even now, I'm getting randomly this error with minimal configuration( 1 publisher 1,2,3...8 consumers)


El viernes, 12 de julio de 2019, 3:44:30 (UTC-4), Arnaud Cogoluègnes escribió:
Does the run crash completely (no results)? There can be some spurious
warnings when a run stops and PerfTestMulti moves on to the next one.

On Thu, Jul 11, 2019 at 10:52 PM Rod <rodrigo...@gmail.com> wrote:
>
> Hi, I'm facing the following issue when using perfTest tool:
>
>
> #20:38:32.753 [AMQP Connection some_ip:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)
>
> 20:40:41.648 [AMQP Connection some_ip:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)
>
> #20:40:45.082 [AMQP Connection 0:0:0:0:0:0:0:1:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)
>
> 20:43:23.786 [AMQP Connection some_ip:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)
>
> #20:43:26.797 [AMQP Connection some_ip:5672] WARN  c.r.c.impl.ForgivingExceptionHandler - An unexpected connection driver error occured (Exception message: Socket closed)
>
>
>
> In my publish-consume-spec.js I have this content:
>
> [
>
>  {'name':      'message-sizes-and-producers',
>   'type':      'varying',
>   'params':    [{'time-limit':     30,
>                  'consumer-count': 90}],
>   'variables': [{'name':   'min-msg-size',
>                  'values': [0, 1000, 10000, 100000]},
>                 {'name':   'producer-count',
>                  'values': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}]}
> ]
>
>
>
>
> I'm not sure why it is failing. For example for another scenario, it sometimes is passing and sometimes not (with the same error). This is the scenario:
>
>  {'name':      'no-ack',
>   'type':      'simple',
>   'params':    [{'time-limit':     30}]
>  }
>
>
>
> Also, If I run perfTest command just plain (bin/runjava com.rabbitmq.perf.PerfTest) I don't see any error.
>
> --
> 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.

Arnaud Cogoluègnes

unread,
Jul 15, 2019, 9:19:29 AM7/15/19
to rabbitm...@googlegroups.com
I changed your configuration file a bit to make the run shorter, but I
could not reproduce:

[

{'name': 'message-sizes-and-producers',
'type': 'varying',
'params': [{'time-limit': 15,
'consumer-count': 10}],
'variables': [{'name': 'min-msg-size',
'values': [1000, 10000]},
{'name': 'producer-count',
'values': [1, 2, 3, 4, 5]}]}
]

The test runs and results for the different scenarios are dumped in
the result file.

Can you please make sure that you're using the latest version of
PerfTest (2.8.1 currently).

You can also add more log [1]: create a perf-test-log-config.xml file
with the following content:

<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -
%msg%n</pattern>
</encoder>
</appender>

<logger name="com.rabbitmq.perf" level="debug" />

<root level="warn">
<appender-ref ref="STDOUT" />
</root>
</configuration>

And run PerfTestMulti like this:

bin/runjava -Dlogback.configurationFile=./perf-test-log-config.xml
com.rabbitmq.perf.PerfTestMulti publish-consume-spec.js
publish-consume-result.js

Then please post the console output in a file in this thread.

[1] https://github.com/rabbitmq/rabbitmq-perf-test#logging
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
> To post to this group, send email to rabbitm...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/5ab1425b-440b-4151-8663-7e4fafa67093%40googlegroups.com.

Rod

unread,
Jul 15, 2019, 1:07:34 PM7/15/19
to rabbitmq-users
Question:

what should be the content of the html file for the test you gave me? 
This is my content but somehow, I'm able to just see the title of my scenario:










<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">


<html>


 <head>


    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">


    <title>RabbitMQ Performance</title>


    <link href="../perf.css" rel="stylesheet" type="text/css">


    <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../lib/excanvas.min.js"></script><![endif]-->


    <script language="javascript" type="text/javascript" src="../lib/jquery.min.js"></script>


    <script language="javascript" type="text/javascript" src="../lib/jquery.flot.min.js"></script>


    <script language="javascript" type="text/javascript" src="../perf.js"></script>


    <script language="javascript" type="text/javascript">


    $(document).ready(function() {


      var main_results;


        $.ajax({


            url: 'publish-consume-results-rod.js',


            success: function(data) {


                render_graphs(JSON.parse(data));


            },


            fail: function() { alert('error loading publish-consume-results-rod.js'); }


        });


    });


    </script>


 </head>


    <body>


    <h1>RabbitMQ Performance Example</h1>




    <h3>message-sizes-and-producers</h3>


    <div class="chart"


      data-type="time"


      data-latency="true"


      data-x-axis="time (s)"


      data-y-axis="rate (msg/s)"


      data-y-axis2="latency s)"


      data-scenario="message-sizes-and-producers"></div>


  </body>


 </html>


[root@ip-10-14-19-204 examples]#


Arnaud Cogoluègnes

unread,
Jul 16, 2019, 2:51:56 AM7/16/19
to rabbitm...@googlegroups.com
There should some messages logged in the browser console.

Can you please follow up on the steps I listed in my previous
response? We cannot help you if you don't follow our suggestions and
ask several questions in the same thread.
> --
> 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.
> To post to this group, send email to rabbitm...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/6a7aa156-074d-4cb4-8417-16a991ea0acb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages