jamvm out of memory

JosAH:
...
(-Xmx32M makes your heap large enough for substantial Java programs while it still doesn't need that (slow) swap space).
...

I agree 100%. Turn on swap will make it become patience training machine.

Upgrade AR9331 to big cousin which support much more RAM.

http://forum.arduino.cc/index.php?topic=187766.msg1711221#msg1711221