juanldslv

juanldslv

How to read a erl_crash.dump for know the cause of crash that has application?

Hello guys, I hope that all your things are good, I open the file erl_crash but I dont know exactly what is the cause that make that the application crash. I have this files, two files are erl_crash report, the another file is about top in server, the ram has a good average of use, but it never overload until the moment.
The server has this features 4 gb of ram, 500 gb of hd, S.O is Ubuntu with 64 bits.

all advices are well received. best regards .

Most Liked

rvirding

rvirding

Creator of Erlang

It is the line marked “Slogan:” which gives the basic cause why the erlang system crashed. In this case you were trying to allocate more memory for process heaps but this was not allowed by the OS.

idi527

idi527

I usually remove all swap since it introduces huge unpredictablity in performance into the system. Plus I’ve seen some cases when swap causes problems with ssh. It’s safer to fail fast, in my opinion, at least on linux. I heard freebsd is a bit different in regards to swap (it’s possible to mark some processes which won’t go into swap or something like that).

“Swap or no swap for soft real-time elixir apps” might be an interesting discussion to have …

OvermindDL1

OvermindDL1

It looks like it’s just running out of memory… How much memory does the program use? How long does it take to crash? Can you open up observer on it and watch it to see if any specific process or binary heap or something keeps growing without shrinking?

EDIT: And for some reason it looks capped to 2gigs of ram?

Oooo, I think I see, you are allocating more ram than what’s available and you have no SWAP memory setup.

Either reduce the memory load of the system (again check your beam program and see what’s eating memory via :observer or so), and/or add swap. You should add swap anyway, I’d say no less than 8 gigs of swap for your system. You can add swap while the system is in use for note, instructions online. :slight_smile:

Where Next?

Popular in Questions Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New

Other popular topics Top

axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 48475 226
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43806 214
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39523 209
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New

We're in Beta

About us Mission Statement