http://stackoverflow.com/questions/20667761/composer-killed-while-updating
What you should do is:
Run composer update in a local environment
Upload/git push the composer.lock file
Run composer install on the live server
composer install will read from the .lock file fetching the exact same versions every time rather than finding the latest versions of every package. This makes your app less likely to break, and composer uses less memory.