Forcing smp

58 views
Skip to first unread message

Ángel Herranz

unread,
May 10, 2014, 4:33:40 AM5/10/14
to chica...@googlegroups.com
Hi everyone,

enif_send: env==NULL on non-SMP VM

is the error I'm getting when runing a CB application under CB 0.8.12 with erlang R17 in a Ubuntu 14.04 in a m3.medium AWS EC2 instance.

It seems erlang does not start with smp by default in my instance.

$ erl
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]

$ erl -smp
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:1:1] [async-threads:10] [hipe] [kernel-poll:false]

What is the proper configuration to force -smp enable flag when starting a CB application?

Kind regards.

Ángel Herranz

unread,
May 10, 2014, 1:52:30 PM5/10/14
to chica...@googlegroups.com
I think I solved it: found I can use vm_args, a property in the config file (boss.config) where you can add vm args such as "-smp".

Btw, vm_args is not documented in https://github.com/ChicagoBoss/ChicagoBoss/wiki/Configuration

Regards.

Olasemo Oladipo

unread,
Mar 1, 2018, 5:39:22 AM3/1/18
to ChicagoBoss
How did you add the vm_args entry for smp to the boss.config?
Reply all
Reply to author
Forward
0 new messages