[erlang-questions] Building small erlang vm suitable for bundle with app.

Andrew Gopienko gopienko@REDACTED
Thu Dec 15 10:35:30 CET 2011


Hi,

You can also strip the executables and erlang beams (beam_lib:strip*).

-rwxr-xr-x 1 tdx tdx 1942300 2011-12-15 13:29 beam*
-rwxr-xr-x 1 tdx tdx 2134876 2011-12-15 13:29 beam.smp*


Andrew Gopienko

2011/12/14 dmitry kolesnikov <dmkolesnikov@REDACTED>

> Hi,
>
> I have not yet spent too much time to investigate how to build 2MB
> self-sustainable package but systools gives me about 14MB with possible
> reduction to 7 - 9MB on debian 64bit.
>
> as an example *.rel package contains following libraries:
> {kernel, "2.14.5"},
> {stdlib, "1.17.5"},
> {sasl,   "2.1.10"},
> {crypto, "2.0.4"},
> {public_key, "0.13"},
> {ssl,    "4.1.6"},
> {inets,  "5.7.1"},
> {compiler, "4.7.5"},
> {syntax_tools, "1.6.7.1"},
> {xmerl,    "1.2.10"},
> {mochiweb, "2.3.0"}
> ...
>
> systools:make_tar($$n, [{erts, code:root_dir()}]) %% do not put any extra
> dirs here
>
> most heavy components are VM by itself
> -rwxr-xr-x   1 kolesnik  wheel   7.7M Oct 19 20:53 beam
> -rwxr-xr-x   1 kolesnik  wheel   9.6M Oct 19 20:53 beam.smp
>
> - Dmitry
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111215/1b384cba/attachment.htm>


More information about the erlang-questions mailing list