travis: set maximum Java heap size to 2GB.