erlang goes to a barber

Greetings All.

I installed but not yet started though erlang and ejabber. I must say I was quit horrified when I saw that erlang takes over 80MB of diskspace! Not that I don't have that much but that's quite to much just to run a jabber server. Can you tell how to cut it short just enough to run ejabberd and not a bit more ;-)

Best regards,
>steelman<

try disabling megaco

Open Source Erlang includes Erlang + OTP (a lot of libraries). Almost all the space (96.6%) is on OTP. You can try to disable all the libraries not required by ejabberd, but since most of them are less than two megs, maybe you prefer to just remove the biggest ones:

  • megaco: 27%, 18.8 MB
  • hipe: 6.2%, 4.3 MB
  • snmp: 4.8%, 3.3 MB

How did i see if a library is required or not:

find ejabberd/src/ | xargs grep "megaco"

How to disable a library:

  • If it's possible: ./configure --disable-megaco
  • If not, remove the reference to that lib on lib/Makefile

nice shot

Greetings badlop.

Thanks a lot :) That is good yet still it is "only" about 1/3 of all 80MB. Does ejabberd really need the other 48MB?

why can't i read ;)

OK my last comment was not very clever ;) Yet still I've got to ask one question: are there any dependencies between the libreries in the erlang/lib directory? So when I can be sure that when I remove those once which I don't find mentioned in the ejabberd sources others will still work fine.

Check the new ejabberd installer for Linux

You can look at the new ejabberd installer for Linux-x86. It includes the minimum part of Erlang/OTP required to run ejabberd. It's less than 5 MB of download. There you will find the required OTP libraries.

Syndicate content