Skip to content

Moving large XML results to a different process cause Elixir to use all memory and crash #116

@joshuataylor

Description

@joshuataylor

Elixir: 1.12.1
Erlang: 24.0.2

When using Flow or IEx.pry, Elixir will eat all my memory and crash.

Stream.map and Enum.map work as normal.

Repo example:

git clone https://github.com/joshuataylor/meeseeks_xml_example
cd meeseeks_xml_example
gzip -d Wikipedia-20210626124344.xml.gz # the demo xml file, this is a random dump of Australian politicians :-)

Now change the file lib/meeseeks_xml.ex with the path to the XML file.

Then run:

iex -S mix

💀 The next step will cause Elixir to eat all your memory and might cause your computer to crash, so be careful; 💀

Type the following into iex:

MeeseeksXml.example1()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions