pmx icon indicating copy to clipboard operation
pmx copied to clipboard

Network monitoring knocks out AMQP connections

Open jonkafton opened this issue 9 years ago • 3 comments

If network monitoring is turned on (pmx.init() with network: true), RabbitMQ server will abruptly close attempts to establish connection (amqplib on client).

jonkafton avatar Sep 24 '15 22:09 jonkafton

+1 Just found out I cant use both at the same time.

wespen avatar Sep 15 '16 18:09 wespen

+1

Node.js Timeout: Error: Socket closed abruptly during opening handshake

RabbitMQ Log Entry: =ERROR REPORT==== 26-Sep-2016::16:45:07 === closing AMQP connection <0.5604.0> (127.0.0.1:54533 -> 127.0.0.1:5672): {handshake_timeout,frame_header}

schornio avatar Sep 26 '16 14:09 schornio

I will advice you to disable monitoring network in pmx for now, we are wrapping the socket constructor to get those metrics in pure javascript (AMQP client must do the same) What you could do is use pm2-server-monit to monitor these datas since it use linux binary to get them, it should work well.

vmarchaud avatar Sep 26 '16 15:09 vmarchaud