Low memory optimization

Funambol carries over memory allocation settings from the Enterprise version of Funambol which contains a lot of components, and is designed to work in large service provider environments.

Unfortunately, this may cause Funambol (and as a consequence the Groupware Sync server) not to start in environments with less than 1GB Physical RAM.

Funambol will start just fine by setting the heap size to 256MB rather than the default 512MB. This can be configured with the FUNAMBOL_DSSERVER_MEM_OPTS environment variable before starting the server:

export FUNAMBOL_DSSERVER_MEM_OPTS="-Xmx256M"