keymetrics / pmx

(DEPRECATED) use @pm2/io instead (drop-in replacement) https://github.com/keymetrics/pm2-io-apm
265 stars 35 forks source link

Network monitoring knocks out AMQP connections #52

Open jonkafton opened 9 years ago

jonkafton commented 9 years ago

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

wespen commented 8 years ago

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

schornio commented 8 years ago

+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}

vmarchaud commented 8 years ago

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.