I've had the same problem with msfconsole on my pi and bbb.
msfconsole works when you add a swapfile or swap partition about as much or more ram as you have.
There should be tutorials on the...