andytill / erlyberly

erlang tracing for the masses
https://twitter.com/erlyberlytips
GNU General Public License v3.0
693 stars 43 forks source link

Connect to epmd on a non standard port #118

Closed andreausu closed 8 years ago

andreausu commented 8 years ago

Hi,

since we're using docker in production we're exposing multiple applications on the same server on different ports, and then we're launching erl like this in order to use run observer on localhost while connecting to the remote application:

ERL_EPMD_PORT=40001 erl -sname debug@hostname -setcookie cookiename -hidden -run observer

Is there a way to pass the custom epmd port to erlyberly?

Cheers, Andrea

andytill commented 8 years ago

Hi @andreausu

I haven't tried it before but it looks like the port can be set using the same environment variable ERL_EPMD_PORT.

https://github.com/andytill/jinterface/blob/e561017fc01975da28555e50d35c11ef2f256ec3/src/main/java/com/ericsson/otp/erlang/OtpEpmd.java#L58

andreausu commented 8 years ago

I don't know why I didn't think of trying it before, it works like a charm, thank you!