[erlang-questions] Sending 2.5 MB message with com.ericsson.otp.erlang

Martin Dimitrov mrtndimitrov@REDACTED
Thu Oct 27 10:46:58 CEST 2011


In out app, the Java node sends messages to Erlang through
com.ericsson.otp.erlang package. In Java we create an OtpNode as:

OtpNode oNode = new OtpNode(NODE);
OtpMbox mbox = oNode.createMbox(MBOX);

and then send using

mbox.send(OtpErlangPid, OtpErlangTuple);

All is well when sending small in size messages (several KB). But when
sending a relatively large message (2.5MB) it takes 8-10 seconds. The
interesting thing is that the time it takes does not linearly progress
with the size of the message: 250KB message took around 100 milliseconds.

Does anyone know ways to optimize the transfer?



More information about the erlang-questions mailing list