Unifi wont start Ubuntu 16.04

From the Unifi forums:

Create /etc/default/unifi file with:

JSVC_EXTRA_OPTS=-Xss1280k