Questions tagged [beam]

This tag should be used for questions about the BEAM, the Erlang virtual machine.

The BEAM (Bogdan/Björn's Erlang Abstract Machine) is the Erlang virtual machine. Besides , there are also other languages that can target the BEAM virtual machine, such as Joxa, , , and others.

Disambiguation

  • Use for questions related to Apache Beam, an SDK for batch and stream processing.
  • Use for questions related to Android Beam, the NFC peer-to-peer mode NDEF message exchange mechanism in Android.
  • Use for questions related to the heuristic search algorithm beam search.
106 questions
4
votes
1 answer

How to implement a function to notify a node that the other node quit or not

I am creating a cluster of nodes and I want to get notification every time a node is connected or not how could that be possible?
Mariem
  • 133
  • 5
4
votes
0 answers

Cannot allocate on heap - but memory is there

I am chasing a problem: every few days my system crashes with Slogan: eheap_alloc: Cannot allocate 600904 bytes of memory (of type "heap"). System version: Erlang/OTP 22 [erts-10.5.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1]…
Wojtek Surowka
  • 20,535
  • 4
  • 44
  • 51
4
votes
1 answer

Change Erlang file handle limit?

I'm running into trouble with an Erlang OTP + Cowboy app that does not allow me to open enough files simultaneously. How do I change the number of open file handles allowed in the BEAM? Potentially, I'll need about 500 small text files open at the…
Chris W
  • 289
  • 1
  • 12
3
votes
1 answer

Looking for Erlang Q&A platforms/communities

I am looking for Erlang Q&A platforms/communities for discussion and clarification. I use StackOverflow & erlangforums.com as of now. Both communities are great. Are there any additional Q&A platforms? I have checked the following sites which…
Bhuvan
  • 370
  • 9
3
votes
1 answer

How can I use :observer from IEx when my remote is an embedded system?

I would like to demonstrate the use of the :observer GUI from a remote IEx shell. My target is BEAM running my Elixir app on a resource contrained embedded system. I built the remote OS using Buildroot including support for Erlang. I added a…
nes0
  • 33
  • 3
3
votes
1 answer

How many workers per supervisor?

Is there a boundary for how many workers a specific supervisor process should supervise? I've kept coming back to this question a couple of times while building an OTP supervision tree regarding the performance & fault-tolerance: Should a single…
Milan Velebit
  • 1,933
  • 2
  • 15
  • 32
3
votes
1 answer

Erlang: Will Process Priority Affect Long Running Tasks?

When a process is scheduled with low priority in erlang, it is scheduled into the low/normal queue with a count of 8. It has to be picked from the queue 8 times before getting scheduled. Once it's scheduled, a counter for 2000 reductions is started.…
JasonG
  • 5,794
  • 4
  • 39
  • 67
3
votes
1 answer

Running Erlang on Xeon Phi

How can I compile the VM and run Erlang programs on the Intel Xeon Phi coprocessor?
stpk
  • 2,015
  • 1
  • 16
  • 23
3
votes
1 answer

Is it preferable to expose a C library to Elixir/Erlang, or to implement in Erlang/Elixir?

My background's in Perl/Python/node and a smattering of Ruby. I've not used BEAM VM languages before. In Perl/Python/Node/Ruby, if I wanted to handle 'lower level' tasks - intense compute, needing access to threads, or more commonly, wrapping a C…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
3
votes
1 answer

Why does the nif function block the Erlang VM from scheduling other processes?

When the Erlang VM beam runs some code written in C,the other processes written in Erlang was not scheduled. For example: static ERL_NIF_TERM nifsleep(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { sleep(10); …
2
votes
0 answers

How to created an unbounded input for Beam in Go?

I'm trying to use the Go Beam Sdk to create a pipeline processing pubsub messages. github.com/apache/beam/sdks/v2/go/pkg/beam I understand that the pubsubio connector is doing external calls working only on dataflow runner. What if I want to test my…
boolangery
  • 313
  • 3
  • 6
2
votes
2 answers

How to split the result of GroupByKey() transform based on key and write values into GCS bucket using Apache Beam python?

I am new to Apache Beam, Dataflow and Python and any help would be appreciated. I have a requirement where I need to generate reports by fetching records from BigQuery table and writing the results into GCS bucket using Apache Beam in python.I wrote…
2
votes
1 answer

Why is math so slow in Erlang/the BEAM VM?

I was trying to understand why math might be so slow in Erlang, and if so, what I could do to find out where it is slow and try to speed it up. Some people said it's because it's a VM, but I doubt that because the JVM is fast at math, and so is V8.…
banjomet
  • 21
  • 1
2
votes
0 answers

Multiple beam processes with ejabberd

I'm working on a chat application built using ejabberd on the backend. Every time I start ejabberd: I see multiple ejabberd/beam process start and after sometime.. I see that one of them is hogging up cpu completely.. Restarting the erlang virtual…
2
votes
1 answer

Composing jpeg image with multiple png files in Erlang/Elixir

I need to overlap a series of png images in order to create a single jpeg file in Erlang/Elixir. I can't find anywhere a way to do this task on the BEAM, so I would love to use Erlang NIFs and writing down some C code using the ImageMagick APIs, but…
Michele Riva
  • 552
  • 9
  • 24