ejabberd - Comments for "max_stanza_size, what are the effects when this is set very large?" https://www.ejabberd.im/node/4630 en Thanks Badlop, I don't know https://www.ejabberd.im/node/4630#comment-57232 <p>Thanks Badlop, I don't know Erlang but that was the answer I was hoping for.</p> <p>regards,</p> Thu, 14 Apr 2011 10:45:09 +0000 callipygous comment 57232 at https://www.ejabberd.im callipygous wrote: I'm https://www.ejabberd.im/node/4630#comment-57230 <div class="quote-msg"> <div class="quote-author"><em>callipygous</em> wrote:</div> <p>I'm worried that something somewhere might be reserving max_stanza_size amount of space for each message?</p></div> <p>That max_stanza_size value is read from ejabberd.cfg and passed between several parts of ejabberd. Following its trail, I found it's really used only in one place, here:<br /> <noindex><a href="https://github.com/processone/ejabberd/blob/2.1.x/src/xml_stream.erl#L129" title="https://github.com/processone/ejabberd/blob/2.1.x/src/xml_stream.erl#L129" rel="nofollow" >https://github.com/processone/ejabberd/blob/2.1.x/src/xml_stream.erl#L129</a></noindex><br /> As you can see, MaxSize is used only to determine if a stanza just received is too large or not.</p> <p>So, that option is not used to reserve memory in advance.</p> Thu, 14 Apr 2011 10:12:48 +0000 mfoss comment 57230 at https://www.ejabberd.im